mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 17:26:41 +08:00
fix: 优化多行输入提示文字间距
This commit is contained in:
@@ -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;/)
|
||||||
|
})
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user