fix(revisions): double scrolling on mobile

This commit is contained in:
Elian Doran 2025-11-30 21:24:57 +02:00
parent 5ff77c16ab
commit b47bc50147
No known key found for this signature in database

View File

@ -16,7 +16,7 @@ body.mobile .revisions-dialog {
} }
.modal-body { .modal-body {
height: 100% !important; height: fit-content !important;
flex-direction: column; flex-direction: column;
padding: 0; padding: 0;
} }
@ -30,14 +30,15 @@ body.mobile .revisions-dialog {
max-height: 20vh; max-height: 20vh;
border-bottom: 1px solid var(--main-border-color) !important; border-bottom: 1px solid var(--main-border-color) !important;
padding: 0 1em; padding: 0 1em;
flex-shrink: 0;
} }
.modal-body > .revision-content-wrapper { .modal-body > .revision-content-wrapper {
flex-grow: 1; flex-grow: 1;
max-width: unset !important; max-width: unset !important;
height: 100%; height: 100%;
overflow: auto;
margin: 0; margin: 0;
display: block !important;
} }
.modal-body > .revision-content-wrapper > div:first-of-type { .modal-body > .revision-content-wrapper > div:first-of-type {
@ -57,5 +58,6 @@ body.mobile .revisions-dialog {
.revision-content { .revision-content {
padding: 0.5em; padding: 0.5em;
height: fit-content;
} }
} }