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
7c671b53
Unverified
Commit
7c671b53
authored
Apr 14, 2026
by
Wesley Liddick
Committed by
GitHub
Apr 14, 2026
Browse files
Merge pull request #1635 from KnowSky404/fix-issue-1613-version-dropdown
fix(sidebar): prevent version dropdown clipping in expanded brand
parents
d402e722
58c0f576
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/src/components/layout/AppSidebar.vue
View file @
7c671b53
...
@@ -807,7 +807,6 @@ onMounted(() => {
...
@@ -807,7 +807,6 @@ onMounted(() => {
.sidebar-brand
{
.sidebar-brand
{
min-width
:
0
;
min-width
:
0
;
flex
:
1
1
auto
;
flex
:
1
1
auto
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
transition
:
transition
:
max-width
0.22s
ease
,
max-width
0.22s
ease
,
...
@@ -818,6 +817,7 @@ onMounted(() => {
...
@@ -818,6 +817,7 @@ onMounted(() => {
.sidebar-brand-collapsed
{
.sidebar-brand-collapsed
{
max-width
:
0
;
max-width
:
0
;
overflow
:
hidden
;
opacity
:
0
;
opacity
:
0
;
transform
:
translateX
(
-4px
);
transform
:
translateX
(
-4px
);
pointer-events
:
none
;
pointer-events
:
none
;
...
...
frontend/src/components/layout/__tests__/AppSidebar.spec.ts
View file @
7c671b53
...
@@ -22,8 +22,11 @@ describe('AppSidebar custom SVG styles', () => {
...
@@ -22,8 +22,11 @@ describe('AppSidebar custom SVG styles', () => {
describe
(
'
AppSidebar header styles
'
,
()
=>
{
describe
(
'
AppSidebar header styles
'
,
()
=>
{
it
(
'
does not clip the version badge dropdown
'
,
()
=>
{
it
(
'
does not clip the version badge dropdown
'
,
()
=>
{
const
sidebarHeaderBlockMatch
=
styleSource
.
match
(
/
\.
sidebar-header
\s
*
\{[\s\S]
*
?\n
\}
/
)
const
sidebarHeaderBlockMatch
=
styleSource
.
match
(
/
\.
sidebar-header
\s
*
\{[\s\S]
*
?\n
\}
/
)
const
sidebarBrandBlockMatch
=
componentSource
.
match
(
/
\.
sidebar-brand
\s
*
\{[\s\S]
*
?\n\}
/
)
expect
(
sidebarHeaderBlockMatch
).
not
.
toBeNull
()
expect
(
sidebarHeaderBlockMatch
).
not
.
toBeNull
()
expect
(
sidebarBrandBlockMatch
).
not
.
toBeNull
()
expect
(
sidebarHeaderBlockMatch
?.[
0
]).
not
.
toContain
(
'
@apply overflow-hidden;
'
)
expect
(
sidebarHeaderBlockMatch
?.[
0
]).
not
.
toContain
(
'
@apply overflow-hidden;
'
)
expect
(
sidebarBrandBlockMatch
?.[
0
]).
not
.
toContain
(
'
overflow: hidden;
'
)
})
})
})
})
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