Skip to content

Commit 003c472

Browse files
committed
0.46.106
1 parent e4c6275 commit 003c472

File tree

2 files changed

+62
-5
lines changed

2 files changed

+62
-5
lines changed

luci-app-openclash/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=luci-app-openclash
4-
PKG_VERSION:=0.46.105
4+
PKG_VERSION:=0.46.106
55
PKG_MAINTAINER:=vernesong <https://github.com/vernesong/OpenClash>
66

77
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

luci-app-openclash/luasrc/view/openclash/status.htm

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287

288288
.oc .card-title {
289289
font-size: 14px;
290-
font-weight: 800;
290+
font-weight: 600;
291291
color: var(--text-secondary);
292292
letter-spacing: 0.5px;
293293
margin-bottom: 10px;
@@ -296,6 +296,7 @@
296296
gap: 6px;
297297
height: 20px;
298298
flex-shrink: 0;
299+
padding-left: 5px;
299300
}
300301

301302
.oc .version-display-container {
@@ -584,6 +585,7 @@
584585
position: absolute;
585586
opacity: 0;
586587
pointer-events: none;
588+
height: var(--control-height)-4px;
587589
}
588590

589591
.oc .cbi-button-option {
@@ -856,6 +858,8 @@
856858
gap: 8px;
857859
flex: 1;
858860
min-height: 32px;
861+
padding-left: 5px;
862+
padding-right: 5px;
859863
}
860864

861865
.oc .subscription-progress {
@@ -891,9 +895,12 @@
891895
}
892896

893897
.oc .subscription-info-text {
894-
font-size: 13px;
898+
font-size: 12px;
895899
color: var(--text-secondary);
896900
line-height: 1.4;
901+
text-overflow: ellipsis;
902+
overflow: hidden;
903+
text-wrap: nowrap;
897904
}
898905

899906
.oc .subscription-loading,
@@ -920,7 +927,9 @@
920927
flex: 1;
921928
white-space: nowrap;
922929
text-overflow: ellipsis;
923-
max-width: calc(100% - 80px);
930+
max-width: calc(100% - 200px);
931+
padding-left: 5px;
932+
overflow: hidden;
924933
}
925934

926935
.oc .config-file-bottom {
@@ -944,6 +953,8 @@
944953
display: flex;
945954
align-items: center;
946955
white-space: nowrap;
956+
padding-right: 5px;
957+
font-size: 12px;
947958
}
948959

949960
.oc .announcement-banner {
@@ -1246,12 +1257,16 @@
12461257
}
12471258

12481259
.oc .subscription-info-text {
1249-
font-size: 9px;
1260+
font-size: 10px;
12501261
}
12511262

12521263
.oc .file-info {
12531264
font-size: 9px;
12541265
}
1266+
1267+
.oc .file-info-item {
1268+
font-size: 10px;
1269+
}
12551270
}
12561271

12571272
@media screen and (max-width: 575px) {
@@ -1311,6 +1326,11 @@
13111326
.oc .cbi-button-group {
13121327
padding: 2px;
13131328
gap: 1px;
1329+
height: 28px;
1330+
}
1331+
1332+
.oc input[type="radio"]:checked + .cbi-button-option {
1333+
height: 24px;
13141334
}
13151335

13161336
.oc .cbi-button-option {
@@ -1434,6 +1454,18 @@
14341454
gap: 6px;
14351455
min-height: 24px;
14361456
}
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+
}
14371469
}
14381470
</style>
14391471
</head>
@@ -2188,6 +2220,11 @@
21882220
if (configNameElement) {
21892221
var displayName = this.formatDisplayName(configFile);
21902222
configNameElement.textContent = displayName;
2223+
if (configNameElement.scrollWidth > configNameElement.clientWidth) {
2224+
configNameElement.title = displayName;
2225+
} else {
2226+
configNameElement.title = '';
2227+
}
21912228
}
21922229

21932230
if (fileInfo) {
@@ -2423,6 +2460,12 @@
24232460
}
24242461

24252462
infoText.textContent = infoString;
2463+
if (infoText.scrollWidth > infoText.clientWidth) {
2464+
infoText.title = infoString;
2465+
} else {
2466+
infoText.title = '';
2467+
}
2468+
24262469
} else {
24272470
if (progressSection) {
24282471
progressSection.style.display = 'none';
@@ -3544,6 +3587,13 @@
35443587
}
35453588

35463589
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+
35473597
DOMCache.core_version_display.style.display = 'flex';
35483598

35493599
var existingDot = DOMCache.core_version_display.querySelector('.update-dot');
@@ -3589,6 +3639,13 @@
35893639
}
35903640

35913641
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+
35923649
DOMCache.plugin_version_display.style.display = 'flex';
35933650

35943651
var existingDot = DOMCache.plugin_version_display.querySelector('.update-dot');

0 commit comments

Comments
 (0)