diff --git a/frontend/src/assets/theme/theme.css b/frontend/src/assets/theme/theme.css index d160474b..9cb90a56 100644 --- a/frontend/src/assets/theme/theme.css +++ b/frontend/src/assets/theme/theme.css @@ -115,4 +115,17 @@ } :root[theme-mode="dark"] .more-wrap:hover .more-icon { opacity: 0.9; +} + +/* 覆盖浏览器自动填充的背景色(Chrome 会强制加浅蓝/浅黄底色) */ +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus, +input:-webkit-autofill:active, +textarea:-webkit-autofill, +select:-webkit-autofill { + -webkit-box-shadow: 0 0 0 1000px var(--td-bg-color-container) inset !important; + -webkit-text-fill-color: var(--td-text-color-primary) !important; + caret-color: var(--td-text-color-primary) !important; + transition: background-color 5000s ease-in-out 0s; } \ No newline at end of file diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vue index 5819654e..f5a1d726 100644 --- a/frontend/src/components/UserMenu.vue +++ b/frontend/src/components/UserMenu.vue @@ -1,16 +1,18 @@