Skip to content

Commit c40976f

Browse files
committed
Bug fix.
1 parent d445b1c commit c40976f

File tree

4 files changed

+59
-213
lines changed

4 files changed

+59
-213
lines changed

resource/static/main.css

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,16 +1163,66 @@ i.s {
11631163
justify-content: center !important;
11641164
}
11651165

1166-
/* server 页面复制按钮 tooltip 缩小 */
1167-
.server-copy-tooltip[data-tooltip]:after {
1168-
font-size: 0.72rem !important;
1169-
line-height: 1.2 !important;
1170-
padding: 0.32em 0.56em !important;
1166+
/* server 页面复制提示:自包含紧凑样式,独立于 custom-server-popup */
1167+
.tippy-box[data-theme~='copy-tooltip'] {
1168+
background-color: rgba(255, 255, 255, 0.92) !important;
1169+
color: #333 !important;
11711170
border-radius: 6px !important;
1171+
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
1172+
backdrop-filter: blur(8px) !important;
1173+
border: 1px solid rgba(255, 255, 255, 0.8) !important;
1174+
font-size: 12px !important;
1175+
line-height: 1.3 !important;
1176+
width: auto !important;
1177+
min-width: 0 !important;
1178+
max-width: 100px !important;
1179+
padding: 0 !important;
1180+
}
1181+
1182+
.tippy-box[data-theme~='copy-tooltip'] .tippy-content {
1183+
padding: 5px 10px !important;
1184+
white-space: nowrap !important;
1185+
font-size: 12px !important;
1186+
line-height: 1.3 !important;
1187+
}
1188+
1189+
.tippy-box[data-theme~='copy-tooltip'] .tippy-arrow {
1190+
width: 16px !important;
1191+
height: 16px !important;
1192+
}
1193+
1194+
.tippy-box[data-theme~='copy-tooltip'] .tippy-arrow::before {
1195+
content: '' !important;
1196+
position: absolute !important;
1197+
border: 8px solid transparent !important;
11721198
}
11731199

1174-
.server-copy-tooltip[data-tooltip]:before {
1175-
transform: scale(0.82);
1200+
.tippy-box[data-theme~='copy-tooltip'][data-placement^='top'] .tippy-arrow {
1201+
bottom: -9px !important;
1202+
left: 50% !important;
1203+
transform: translateX(-50%) !important;
1204+
}
1205+
1206+
.tippy-box[data-theme~='copy-tooltip'][data-placement^='top'] .tippy-arrow::before {
1207+
bottom: 0 !important;
1208+
left: 50% !important;
1209+
transform: translateX(-50%) !important;
1210+
border-top-color: rgba(255, 255, 255, 0.92) !important;
1211+
border-bottom: none !important;
1212+
}
1213+
1214+
.tippy-box[data-theme~='copy-tooltip'][data-placement^='bottom'] .tippy-arrow {
1215+
top: -9px !important;
1216+
left: 50% !important;
1217+
transform: translateX(-50%) !important;
1218+
}
1219+
1220+
.tippy-box[data-theme~='copy-tooltip'][data-placement^='bottom'] .tippy-arrow::before {
1221+
top: 0 !important;
1222+
left: 50% !important;
1223+
transform: translateX(-50%) !important;
1224+
border-bottom-color: rgba(255, 255, 255, 0.92) !important;
1225+
border-top: none !important;
11761226
}
11771227

11781228
/* 前台 network 页面按钮还原为胶囊形(避免被图标按钮规则影响) */

resource/static/wallpaper.js

Lines changed: 0 additions & 204 deletions
This file was deleted.

resource/template/common/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<link rel="stylesheet" type="text/css" href="/static/fontawesome.min.css?v2025032723">
2020
<link href="https://s4.zstatic.net/ajax/libs/font-logos/1.3.0/font-logos.min.css" rel="stylesheet">
2121
<link href="https://s4.zstatic.net/ajax/libs/flag-icons/7.5.0/css/flag-icons.min.css" rel="stylesheet">
22-
<link rel="stylesheet" type="text/css" href="/static/main.css?v2026031426">
22+
<link rel="stylesheet" type="text/css" href="/static/main.css?v2026031431">
2323
<link rel="shortcut icon" type="image/png" href="/static/logo.svg?v20220602"/>
2424
</head>
2525
{{if ts .CustomCodeDashboard}} {{.CustomCodeDashboard|safe}} {{end}}

resource/template/theme-default/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<link rel="stylesheet" type="text/css" href="/static/fontawesome.min.css?v2025032723">
2222
<link href="https://s4.zstatic.net/ajax/libs/font-logos/1.3.0/font-logos.min.css" rel="stylesheet">
2323
<link href="https://s4.zstatic.net/ajax/libs/flag-icons/7.5.0/css/flag-icons.min.css" rel="stylesheet">
24-
<link rel="stylesheet" type="text/css" href="/static/main.css?v2026031426">
24+
<link rel="stylesheet" type="text/css" href="/static/main.css?v2026031431">
2525
<link rel="apple-touch-startup-image" href="/static/logo.svg" />
2626
<link rel="shortcut icon" type="image/png" href="/static/logo.svg?v20220602"/>
2727
</head>

0 commit comments

Comments
 (0)