fix: 登录占位英文、缩短提示并消除横向滚动条
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user