feat: 首页版本号、简介布局与反显、密钥眼睛融合、定时拉取开关
Build and Deploy / build (push) Successful in 11s
Build and Deploy / deploy (push) Failing after 49s

This commit is contained in:
cheney
2026-09-01 11:15:35 +08:00
parent c09857cc81
commit 64f3f6ea58
12 changed files with 48 additions and 20 deletions
+16 -4
View File
@@ -1676,32 +1676,44 @@ button.chip:hover {
}
.ai-key-field .input {
width: 100%;
padding-right: 42px;
padding-right: 40px;
}
.pwd-field {
position: relative;
}
.pwd-field .input {
width: 100%;
padding-right: 42px;
padding-right: 40px;
}
.eye-toggle {
position: absolute;
right: 8px;
right: 2px;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
width: 34px;
height: 100%;
padding: 0;
border: 0;
background: none;
cursor: pointer;
color: var(--ink-dim);
border-radius: 0 8px 8px 0;
}
.eye-toggle:hover {
color: var(--ink);
}
.eye-toggle .eye-closed {
display: none;
}
.eye-toggle[data-show] .eye-open {
display: none;
}
.eye-toggle[data-show] .eye-closed {
display: inline;
}
.auth-row {
margin-top: 14px;
display: flex;
+2 -4
View File
@@ -127,10 +127,8 @@
var show = input.type === "password";
input.type = show ? "text" : "password";
btn.setAttribute("aria-label", show ? "隐藏密码" : "显示密码");
var open = btn.querySelector(".eye-open");
var closed = btn.querySelector(".eye-closed");
if (open) open.hidden = show;
if (closed) closed.hidden = !show;
if (show) btn.setAttribute("data-show", "");
else btn.removeAttribute("data-show");
});
});