()
| 718 | const rowPad = listIsMobile ? '10px 10px' : '8px 14px'; |
| 719 | const rowGap = listIsMobile ? '8px' : '12px'; |
| 720 | row.style.cssText = 'display:flex;align-items:center;padding:' + rowPad + ';margin:0 0 1px;border-radius:8px;gap:' + rowGap + ';transition:background 0.2s ease;cursor:default;' + (listIsMobile ? 'min-height:44px;' : ''); |
| 721 | row.onmouseenter = function() { this.style.background = '#f7f8fa'; }; |
| 722 | row.onmouseleave = function() { this.style.background = 'transparent'; }; |
| 723 | |
| 724 | // 排名 |
| 725 | const rank = document.createElement('div'); |
| 726 | rank.style.cssText = 'min-width:28px;height:28px;line-height:28px;text-align:center;border-radius:8px;font-size:12px;font-weight:700;flex-shrink:0;'; |
| 727 | if (idx === 0) { |
| 728 | rank.textContent = '1'; |
| 729 | rank.style.cssText += 'background:linear-gradient(135deg,#ff6b6b,#ee5a24);color:#fff;box-shadow:0 2px 8px rgba(238,90,36,0.3);'; |
| 730 | } else if (idx === 1) { |
| 731 | rank.textContent = '2'; |
| 732 | rank.style.cssText += 'background:linear-gradient(135deg,#ffa502,#e67e22);color:#fff;box-shadow:0 2px 8px rgba(230,126,34,0.25);'; |
| 733 | } else if (idx === 2) { |
| 734 | rank.textContent = '3'; |
| 735 | rank.style.cssText += 'background:linear-gradient(135deg,#feca57,#f39c12);color:#7d5a00;box-shadow:0 2px 8px rgba(243,156,18,0.25);'; |
| 736 | } else { |
| 737 | rank.textContent = idx + 1; |
no test coverage detected