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
b9b52e74
"git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "e8be43449869ff44a5a24e111c90d0cb98529324"
Commit
b9b52e74
authored
Apr 13, 2026
by
knowsky404
Browse files
fix(sidebar): prevent version dropdown clipping
parent
ad64190b
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/src/components/layout/__tests__/AppSidebar.spec.ts
View file @
b9b52e74
...
@@ -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 @
b9b52e74
...
@@ -529,7 +529,6 @@
...
@@ -529,7 +529,6 @@
.sidebar-header
{
.sidebar-header
{
@apply
h-16
px-6;
@apply
h-16
px-6;
@apply
flex
items-center
gap-3;
@apply
flex
items-center
gap-3;
@apply
overflow-hidden;
@apply
border-b
border-gray-100
dark
:
border-dark-800
;
@apply
border-b
border-gray-100
dark
:
border-dark-800
;
transition
:
transition
:
padding
0.2s
ease
,
padding
0.2s
ease
,
...
...
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