More flexible resizing for small screens

This commit is contained in:
Joe Knapper 2026-06-17 17:49:23 +01:00
parent c860e1ee22
commit adbbed3961
2 changed files with 29 additions and 5 deletions

View file

@ -156,20 +156,26 @@ export default {
/* Expanded view */ /* Expanded view */
.log-wrapper { .log-wrapper {
position: relative; position: relative;
height: 200px; flex: 1 1 200px; /* prefer 200px, but shrink if the container runs out of room */
min-height: 2.6em; /* hard floor: roughly two lines of text */
overflow: hidden; overflow: hidden;
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
display: flex;
flex-direction: column;
} }
.action-log-display { .action-log-display {
width: 100%; width: 100%;
position: relative; position: relative;
height: 90%; flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
} }
.log-summary { .log-summary {
padding: 1em; padding: 0.6em;
padding-right: 2.5em; /* reserve room for the toggle button, prevents overlap */ padding-right: 2.5em; /* reserve room for the toggle button, prevents overlap */
display: flex; display: flex;
align-items: center; align-items: center;
@ -180,7 +186,8 @@ export default {
} }
.log-container { .log-container {
height: 90%; flex: 1 1 auto;
min-height: 0;
overflow: auto; overflow: auto;
background-color: white; background-color: white;
color: black; color: black;

View file

@ -110,6 +110,7 @@ export default {
place-content: stretch flex-start; place-content: stretch flex-start;
align-items: center; align-items: center;
width: 100%; width: 100%;
flex: 0 0 auto;
} }
#progress-and-cancel-row .stretchy { #progress-and-cancel-row .stretchy {
@ -130,7 +131,23 @@ export default {
flex-direction: column; flex-direction: column;
} }
#status-modal h2 {
flex: 0 0 auto; // title never shrinks
}
#status-modal .action-log-display {
flex: 1 1 auto;
min-height: 0;
}
#status-modal .log-wrapper {
flex: 1 1 200px; // prefer 200px, shrink only under pressure
min-height: 2.6em; // floor: one line
}
#status-modal .log-container { #status-modal .log-container {
height: 10em; height: auto;
flex: 1 1 auto;
min-height: 2.6em;
} }
</style> </style>