Make Configuration UI look more reasonable on mobile devices

This commit is contained in:
Zef Hemel
2026-04-28 09:07:44 +02:00
parent ab8a790a02
commit 0b5cf7c6af
3 changed files with 43 additions and 0 deletions
+6
View File
@@ -119,6 +119,12 @@ body {
background-color: initial;
}
}
@media only screen and (max-width: 600px) {
// On narrow screens override the inline `inset` that plugs pass to
// showPanel("modal", N) so the modal goes nearly edge-to-edge.
inset: 8px !important;
}
}
.sb-page-prefix {
+8
View File
@@ -6,6 +6,14 @@
border-radius: 8px;
overflow: hidden;
@media only screen and (max-width: 600px) {
margin-top: 8px;
width: 100%;
max-width: 100%;
max-height: calc(100vh - 16px);
border-radius: 0;
}
.cm-content {
padding: 0;
@@ -389,3 +389,32 @@ html[data-theme="dark"] .lib-danger:hover { background: #3a1f1f; }
text-overflow: ellipsis;
max-width: 240px;
}
@media only screen and (max-width: 600px) {
#cfg-header { padding: 12px 14px 0; }
#cfg-content { padding: 14px; }
#cfg-footer { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
#cfg-close { top: 8px; right: 8px; }
.cfg-field {
flex-direction: column;
align-items: stretch;
gap: 8px;
}
.cfg-field-control {
margin-left: 0;
justify-content: flex-end;
}
.cfg-field-control input[type="text"],
.cfg-field-control input[type="password"],
.cfg-field-control select {
flex: 1;
min-width: 0;
}
.lib-row { flex-direction: column; align-items: stretch; }
.lib-uri { max-width: 100%; }
.lib-footer-note { margin-right: 0; flex-basis: 100%; }
#cfg-shortcuts-table { display: block; overflow-x: auto; }
}