Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
354b68dd
Commit
354b68dd
authored
Apr 13, 2026
by
knowsky404
Committed by
陈曦
Apr 14, 2026
Browse files
fix(sidebar): prevent version dropdown clipping
parent
e1fab9b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/layout/__tests__/AppSidebar.spec.ts
View file @
354b68dd
...
@@ -6,6 +6,8 @@ import { describe, expect, it } from 'vitest'
...
@@ -6,6 +6,8 @@ import { describe, expect, it } from 'vitest'
const
componentPath
=
resolve
(
dirname
(
fileURLToPath
(
import
.
meta
.
url
)),
'
../AppSidebar.vue
'
)
const
componentPath
=
resolve
(
dirname
(
fileURLToPath
(
import
.
meta
.
url
)),
'
../AppSidebar.vue
'
)
const
componentSource
=
readFileSync
(
componentPath
,
'
utf8
'
)
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
'
,
()
=>
{
describe
(
'
AppSidebar custom SVG styles
'
,
()
=>
{
it
(
'
does not override uploaded SVG fill or stroke colors
'
,
()
=>
{
it
(
'
does not override uploaded SVG fill or stroke colors
'
,
()
=>
{
...
@@ -16,3 +18,12 @@ describe('AppSidebar custom SVG styles', () => {
...
@@ -16,3 +18,12 @@ describe('AppSidebar custom SVG styles', () => {
expect
(
componentSource
).
not
.
toContain
(
'
fill: none;
'
)
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;
'
)
})
})
frontend/src/style.css
View file @
354b68dd
...
@@ -246,6 +246,7 @@
...
@@ -246,6 +246,7 @@
}
}
.card-header
{
.card-header
{
@apply
border-b
border-gray-100
dark
:
border-dark-700
;
@apply
px-6
py-4;
@apply
px-6
py-4;
border-bottom
:
1px
solid
#f0f4f8
;
border-bottom
:
1px
solid
#f0f4f8
;
}
}
...
@@ -259,6 +260,7 @@
...
@@ -259,6 +260,7 @@
}
}
.card-footer
{
.card-footer
{
@apply
border-t
border-gray-100
dark
:
border-dark-700
;
@apply
px-6
py-4;
@apply
px-6
py-4;
border-top
:
1px
solid
#f0f4f8
;
border-top
:
1px
solid
#f0f4f8
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment