Fix project board view (#34470)

Fix #34469
pull/34456/head^2
wxiaoguang 2025-05-15 23:25:46 +08:00 committed by GitHub
parent 319d03fbc0
commit bf338bb9e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 17 deletions

View File

@ -10,7 +10,7 @@
.project-header { .project-header {
padding: 0.5em 0; padding: 0.5em 0;
overflow-x: auto; /* in fullscreen mode, the position is fixed, so we can't use "flex wrap" which would change the height */ flex-wrap: wrap;
} }
.project-header h2 { .project-header h2 {
@ -101,17 +101,11 @@
opacity: 0; opacity: 0;
} }
.fullscreen.projects-view .project-header { .fullscreen.projects-view {
position: fixed; position: absolute;
z-index: 1000; inset: 0;
top: 0; display: flex;
left: 0; flex-direction: column;
right: 0;
padding: 0.5em;
width: 100%;
max-width: 100%;
background-color: var(--color-body);
border-bottom: 1px solid var(--color-secondary);
} }
/* Hide project-description in full-screen due to its variable height. No need to show it for better space use. */ /* Hide project-description in full-screen due to its variable height. No need to show it for better space use. */
@ -120,9 +114,7 @@
} }
.fullscreen.projects-view #project-board { .fullscreen.projects-view #project-board {
position: absolute; flex: 1;
top: 60px; max-height: unset;
left: 0; padding-bottom: 0.5em;
right: 0;
max-height: calc(100vh - 70px);
} }