Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
ba5cf9de
Commit
ba5cf9de
authored
Dec 18, 2025
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认固定头部
parent
6de392ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
AppMain.vue
ruoyi-ui/src/layout/components/AppMain.vue
+33
-0
settings.js
ruoyi-ui/src/settings.js
+1
-1
No files found.
ruoyi-ui/src/layout/components/AppMain.vue
View file @
ba5cf9de
...
...
@@ -80,6 +80,39 @@ export default {
min-height
:
0px
;
}
}
/* 移动端fixed-header优化 */
@media
screen
and
(
max-width
:
991px
)
{
.fixed-header
+
.app-main
{
padding-bottom
:
max
(
60px
,
calc
(
constant
(
safe-area-inset-bottom
)
+
40px
));
padding-bottom
:
max
(
60px
,
calc
(
env
(
safe-area-inset-bottom
)
+
40px
));
overscroll-behavior-y
:
none
;
}
.hasTagsView
.fixed-header
+
.app-main
{
padding-bottom
:
max
(
60px
,
calc
(
constant
(
safe-area-inset-bottom
)
+
40px
));
padding-bottom
:
max
(
60px
,
calc
(
env
(
safe-area-inset-bottom
)
+
40px
));
overscroll-behavior-y
:
none
;
}
}
@supports
(
-webkit-touch-callout
:
none
)
{
@media
screen
and
(
max-width
:
991px
)
{
.fixed-header
+
.app-main
{
padding-bottom
:
max
(
17px
,
calc
(
constant
(
safe-area-inset-bottom
)
+
10px
));
padding-bottom
:
max
(
17px
,
calc
(
env
(
safe-area-inset-bottom
)
+
10px
));
height
:
calc
(
100svh
-
50px
);
height
:
calc
(
100dvh
-
50px
);
}
.hasTagsView
.fixed-header
+
.app-main
{
padding-bottom
:
max
(
17px
,
calc
(
constant
(
safe-area-inset-bottom
)
+
10px
));
padding-bottom
:
max
(
17px
,
calc
(
env
(
safe-area-inset-bottom
)
+
10px
));
height
:
calc
(
100svh
-
84px
);
height
:
calc
(
100dvh
-
84px
);
}
}
}
</
style
>
<
style
lang=
"scss"
>
...
...
ruoyi-ui/src/settings.js
View file @
ba5cf9de
...
...
@@ -32,7 +32,7 @@ module.exports = {
/**
* 是否固定头部
*/
fixedHeader
:
fals
e
,
fixedHeader
:
tru
e
,
/**
* 是否显示logo
...
...
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