Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
59c30ff1
authored
Feb 05, 2026
by
Calcium-Ion
Committed by
GitHub
Feb 05, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2839 from QuantumNous/fix/sidebar-scroll-dvh
馃悰
fix: sidebar scroll on mobile dynamic viewport
parents
492003df
4bf30e73
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
web/src/components/layout/PageLayout.jsx
+2
-2
web/src/index.css
+14
-1
No files found.
web/src/components/layout/PageLayout.jsx
View file @
59c30ff1
...
@@ -121,8 +121,8 @@ const PageLayout = () => {
...
@@ -121,8 +121,8 @@ const PageLayout = () => {
return
(
return
(
<
Layout
<
Layout
className=
'app-layout'
style=
{
{
style=
{
{
height
:
'100vh'
,
display
:
'flex'
,
display
:
'flex'
,
flexDirection
:
'column'
,
flexDirection
:
'column'
,
overflow
:
isMobile
?
'visible'
:
'hidden'
,
overflow
:
isMobile
?
'visible'
:
'hidden'
,
...
@@ -153,6 +153,7 @@ const PageLayout = () => {
...
@@ -153,6 +153,7 @@ const PageLayout = () => {
>
>
{
showSider
&&
(
{
showSider
&&
(
<
Sider
<
Sider
className=
'app-sider'
style=
{
{
style=
{
{
position
:
'fixed'
,
position
:
'fixed'
,
left
:
0
,
left
:
0
,
...
@@ -160,7 +161,6 @@ const PageLayout = () => {
...
@@ -160,7 +161,6 @@ const PageLayout = () => {
zIndex
:
99
,
zIndex
:
99
,
border
:
'none'
,
border
:
'none'
,
paddingRight
:
'0'
,
paddingRight
:
'0'
,
height
:
'calc(100vh - 64px)'
,
width
:
'var(--sidebar-current-width)'
,
width
:
'var(--sidebar-current-width)'
,
}
}
}
}
>
>
...
...
web/src/index.css
View file @
59c30ff1
...
@@ -31,6 +31,16 @@ body {
...
@@ -31,6 +31,16 @@ body {
background-color
:
var
(
--semi-color-bg-0
);
background-color
:
var
(
--semi-color-bg-0
);
}
}
.app-layout
{
height
:
100vh
;
height
:
100
dvh
;
}
.app-sider
{
height
:
calc
(
100vh
-
64px
);
height
:
calc
(
100
dvh
-
64px
);
}
code
{
code
{
font-family
:
source-code-pro
,
Menlo
,
Monaco
,
Consolas
,
'Courier New'
,
font-family
:
source-code-pro
,
Menlo
,
Monaco
,
Consolas
,
'Courier New'
,
monospace
;
monospace
;
...
@@ -107,6 +117,7 @@ code {
...
@@ -107,6 +117,7 @@ code {
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
min-height
:
0
;
transition
:
width
0.3s
ease
;
transition
:
width
0.3s
ease
;
background
:
var
(
--semi-color-bg-0
);
background
:
var
(
--semi-color-bg-0
);
}
}
...
@@ -116,9 +127,11 @@ code {
...
@@ -116,9 +127,11 @@ code {
width
:
100%
;
width
:
100%
;
background
:
var
(
--semi-color-bg-0
);
background
:
var
(
--semi-color-bg-0
);
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow
-x
:
hidden
;
border-right
:
none
;
border-right
:
none
;
overflow-y
:
auto
;
overflow-y
:
auto
;
min-height
:
0
;
-webkit-overflow-scrolling
:
touch
;
scrollbar-width
:
none
;
scrollbar-width
:
none
;
-ms-overflow-style
:
none
;
-ms-overflow-style
:
none
;
}
}
...
...
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