fix(layout): prevent layout blowout of logbook entry form on small screens by refining responsive grid/paddings and using class for GPS inputs

This commit is contained in:
2026-05-28 15:33:50 +02:00
parent 53940424c4
commit 960f95c8ac
2 changed files with 60 additions and 3 deletions
+59 -2
View File
@@ -745,14 +745,14 @@ body {
.app-body {
display: grid;
grid-template-columns: 240px 1fr;
grid-template-columns: 240px minmax(0, 1fr);
gap: 24px;
align-items: start;
}
@media (max-width: 768px) {
.app-body {
grid-template-columns: 1fr;
grid-template-columns: minmax(0, 1fr);
}
}
@@ -1748,5 +1748,62 @@ body:has(.theme-cupertino) {
color: #475569;
}
/* Responsive Form and Paddings Fix */
@media (max-width: 768px) {
.app-layout {
padding: 16px;
}
.app-content {
padding: 20px;
}
.form-card {
padding: 20px;
}
}
@media (max-width: 480px) {
.app-layout {
padding: 12px;
}
.app-content {
padding: 16px;
}
.form-card {
padding: 16px;
}
.form-grid {
grid-template-columns: 1fr !important;
gap: 16px;
}
.form-actions {
flex-direction: column-reverse;
align-items: stretch;
width: 100%;
gap: 12px;
}
.form-actions button {
width: 100%;
}
}
.gps-input-row {
display: flex;
gap: 8px;
width: 100%;
}
@media (max-width: 480px) {
.gps-input-row {
flex-wrap: wrap;
}
.gps-input-row input {
flex: 1 1 calc(50% - 4px);
min-width: 70px;
}
.gps-input-row button {
flex: 1 1 calc(50% - 4px);
}
}