fix: 登录占位英文、缩短提示并消除横向滚动条

This commit is contained in:
2026-11-02 15:53:30 +08:00
parent 0b510d8794
commit 43b42e6d1a
5 changed files with 21 additions and 15 deletions
+2 -1
View File
@@ -2,11 +2,12 @@
import { NButton, NIcon, NTooltip } from "naive-ui";
import { cycleTheme, themeChoice } from "../shared/theme";
withDefaults(defineProps<{ placement?: "top" | "left" | "bottom" | "right" }>(), { placement: "top" });
const label = { system: "跟随系统", dark: "深色", light: "浅色" } as const;
</script>
<template>
<n-tooltip>
<n-tooltip :placement="placement">
<template #trigger>
<n-button class="theme-switch" quaternary circle :aria-label="label[themeChoice]" @click="cycleTheme">
<template #icon>