|
287 | 287 |
|
288 | 288 | .oc .card-title { |
289 | 289 | font-size: 14px; |
290 | | - font-weight: 800; |
| 290 | + font-weight: 600; |
291 | 291 | color: var(--text-secondary); |
292 | 292 | letter-spacing: 0.5px; |
293 | 293 | margin-bottom: 10px; |
|
296 | 296 | gap: 6px; |
297 | 297 | height: 20px; |
298 | 298 | flex-shrink: 0; |
| 299 | + padding-left: 5px; |
299 | 300 | } |
300 | 301 |
|
301 | 302 | .oc .version-display-container { |
|
584 | 585 | position: absolute; |
585 | 586 | opacity: 0; |
586 | 587 | pointer-events: none; |
| 588 | + height: var(--control-height)-4px; |
587 | 589 | } |
588 | 590 |
|
589 | 591 | .oc .cbi-button-option { |
|
856 | 858 | gap: 8px; |
857 | 859 | flex: 1; |
858 | 860 | min-height: 32px; |
| 861 | + padding-left: 5px; |
| 862 | + padding-right: 5px; |
859 | 863 | } |
860 | 864 |
|
861 | 865 | .oc .subscription-progress { |
|
891 | 895 | } |
892 | 896 |
|
893 | 897 | .oc .subscription-info-text { |
894 | | - font-size: 13px; |
| 898 | + font-size: 12px; |
895 | 899 | color: var(--text-secondary); |
896 | 900 | line-height: 1.4; |
| 901 | + text-overflow: ellipsis; |
| 902 | + overflow: hidden; |
| 903 | + text-wrap: nowrap; |
897 | 904 | } |
898 | 905 |
|
899 | 906 | .oc .subscription-loading, |
|
920 | 927 | flex: 1; |
921 | 928 | white-space: nowrap; |
922 | 929 | text-overflow: ellipsis; |
923 | | - max-width: calc(100% - 80px); |
| 930 | + max-width: calc(100% - 200px); |
| 931 | + padding-left: 5px; |
| 932 | + overflow: hidden; |
924 | 933 | } |
925 | 934 |
|
926 | 935 | .oc .config-file-bottom { |
|
944 | 953 | display: flex; |
945 | 954 | align-items: center; |
946 | 955 | white-space: nowrap; |
| 956 | + padding-right: 5px; |
| 957 | + font-size: 12px; |
947 | 958 | } |
948 | 959 |
|
949 | 960 | .oc .announcement-banner { |
|
1246 | 1257 | } |
1247 | 1258 |
|
1248 | 1259 | .oc .subscription-info-text { |
1249 | | - font-size: 9px; |
| 1260 | + font-size: 10px; |
1250 | 1261 | } |
1251 | 1262 |
|
1252 | 1263 | .oc .file-info { |
1253 | 1264 | font-size: 9px; |
1254 | 1265 | } |
| 1266 | + |
| 1267 | + .oc .file-info-item { |
| 1268 | + font-size: 10px; |
| 1269 | + } |
1255 | 1270 | } |
1256 | 1271 |
|
1257 | 1272 | @media screen and (max-width: 575px) { |
|
1311 | 1326 | .oc .cbi-button-group { |
1312 | 1327 | padding: 2px; |
1313 | 1328 | gap: 1px; |
| 1329 | + height: 28px; |
| 1330 | + } |
| 1331 | + |
| 1332 | + .oc input[type="radio"]:checked + .cbi-button-option { |
| 1333 | + height: 24px; |
1314 | 1334 | } |
1315 | 1335 |
|
1316 | 1336 | .oc .cbi-button-option { |
|
1434 | 1454 | gap: 6px; |
1435 | 1455 | min-height: 24px; |
1436 | 1456 | } |
| 1457 | + |
| 1458 | + .oc #logo_btn .logo-text { |
| 1459 | + font-size: 8px; |
| 1460 | + } |
| 1461 | + |
| 1462 | + .oc #logo_btn .mihomo-link { |
| 1463 | + font-size: 8px; |
| 1464 | + } |
| 1465 | + |
| 1466 | + .oc .file-info-item { |
| 1467 | + font-size: 10px; |
| 1468 | + } |
1437 | 1469 | } |
1438 | 1470 | </style> |
1439 | 1471 | </head> |
|
2188 | 2220 | if (configNameElement) { |
2189 | 2221 | var displayName = this.formatDisplayName(configFile); |
2190 | 2222 | configNameElement.textContent = displayName; |
| 2223 | + if (configNameElement.scrollWidth > configNameElement.clientWidth) { |
| 2224 | + configNameElement.title = displayName; |
| 2225 | + } else { |
| 2226 | + configNameElement.title = ''; |
| 2227 | + } |
2191 | 2228 | } |
2192 | 2229 |
|
2193 | 2230 | if (fileInfo) { |
|
2423 | 2460 | } |
2424 | 2461 |
|
2425 | 2462 | infoText.textContent = infoString; |
| 2463 | + if (infoText.scrollWidth > infoText.clientWidth) { |
| 2464 | + infoText.title = infoString; |
| 2465 | + } else { |
| 2466 | + infoText.title = ''; |
| 2467 | + } |
| 2468 | + |
2426 | 2469 | } else { |
2427 | 2470 | if (progressSection) { |
2428 | 2471 | progressSection.style.display = 'none'; |
|
3544 | 3587 | } |
3545 | 3588 |
|
3546 | 3589 | DOMCache.core_version_text.textContent = coreVersionText; |
| 3590 | + |
| 3591 | + if (DOMCache.core_version_text.scrollWidth > DOMCache.core_version_text.clientWidth) { |
| 3592 | + DOMCache.core_version_text.title = coreVersionText; |
| 3593 | + } else { |
| 3594 | + DOMCache.core_version_text.title = ''; |
| 3595 | + } |
| 3596 | + |
3547 | 3597 | DOMCache.core_version_display.style.display = 'flex'; |
3548 | 3598 |
|
3549 | 3599 | var existingDot = DOMCache.core_version_display.querySelector('.update-dot'); |
|
3589 | 3639 | } |
3590 | 3640 |
|
3591 | 3641 | DOMCache.plugin_version_text.textContent = pluginVersionText; |
| 3642 | + |
| 3643 | + if (DOMCache.plugin_version_text.scrollWidth > DOMCache.plugin_version_text.clientWidth) { |
| 3644 | + DOMCache.plugin_version_text.title = pluginVersionText; |
| 3645 | + } else { |
| 3646 | + DOMCache.plugin_version_text.title = ''; |
| 3647 | + } |
| 3648 | + |
3592 | 3649 | DOMCache.plugin_version_display.style.display = 'flex'; |
3593 | 3650 |
|
3594 | 3651 | var existingDot = DOMCache.plugin_version_display.querySelector('.update-dot'); |
|
0 commit comments