fix: 优化多行输入提示文字间距

This commit is contained in:
jxxghp
2026-08-31 11:06:03 +08:00
parent e7f2932409
commit 183163497e
2 changed files with 17 additions and 0 deletions
@@ -241,6 +241,10 @@ html[data-theme="transparent"] .v-dialog--fullscreen .v-overlay__scrim {
.v-messages { .v-messages {
color: rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity)); color: rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));
opacity: 1; opacity: 1;
&__message {
line-height: 1.4;
}
} }
// 👉 Alert close btn // 👉 Alert close btn
@@ -0,0 +1,13 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { cwd } from 'node:process'
import { describe, expect, it } from 'vitest'
describe('input hint spacing', () => {
it('keeps wrapped Vuetify messages readable', () => {
const vuetifyOverrides = readFileSync(resolve(cwd(), 'src/@core/scss/libs/vuetify/_overrides.scss'), 'utf8')
const messagesRule = vuetifyOverrides.match(/\.v-messages\s*\{(?<rule>[\s\S]*?)\n\}/)?.groups?.rule
expect(messagesRule).toMatch(/&__message\s*\{[\s\S]*?line-height:\s*1\.4;/)
})
})