"git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "30f55a1f729ea3d4c20e7b8a175812e1ab9f10ae"
Commit 354b68dd authored by knowsky404's avatar knowsky404 Committed by 陈曦
Browse files

fix(sidebar): prevent version dropdown clipping

parent e1fab9b3
......@@ -6,6 +6,8 @@ import { describe, expect, it } from 'vitest'
const componentPath = resolve(dirname(fileURLToPath(import.meta.url)), '../AppSidebar.vue')
const componentSource = readFileSync(componentPath, 'utf8')
const stylePath = resolve(dirname(fileURLToPath(import.meta.url)), '../../../style.css')
const styleSource = readFileSync(stylePath, 'utf8')
describe('AppSidebar custom SVG styles', () => {
it('does not override uploaded SVG fill or stroke colors', () => {
......@@ -16,3 +18,12 @@ describe('AppSidebar custom SVG styles', () => {
expect(componentSource).not.toContain('fill: none;')
})
})
describe('AppSidebar header styles', () => {
it('does not clip the version badge dropdown', () => {
const sidebarHeaderBlockMatch = styleSource.match(/\.sidebar-header\s*\{[\s\S]*?\n \}/)
expect(sidebarHeaderBlockMatch).not.toBeNull()
expect(sidebarHeaderBlockMatch?.[0]).not.toContain('@apply overflow-hidden;')
})
})
......@@ -246,6 +246,7 @@
}
.card-header {
@apply border-b border-gray-100 dark:border-dark-700;
@apply px-6 py-4;
border-bottom: 1px solid #f0f4f8;
}
......@@ -259,6 +260,7 @@
}
.card-footer {
@apply border-t border-gray-100 dark:border-dark-700;
@apply px-6 py-4;
border-top: 1px solid #f0f4f8;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment