Skip to content

Commit 41df03b

Browse files
committed
Two lines for the mistake's message where the column is narrow
On a phone the message and its Show where button wrap to two lines, and the one line that was kept for it moved what is under it when a mistake appeared. Below 700px the line keeps two. Measured at 1100, 768, 390 and 320px: the usual message moves what is under it by at most 3px, and a long one that wraps once more by a line.
1 parent ebaca57 commit 41df03b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/assets/site.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,10 @@ tbody th a:hover code { text-decoration: underline; }
586586
.build textarea[hidden] { display: none; }
587587
.build .field { margin: 1rem 0 0.5rem; }
588588
.source-editor { display: block; }
589-
/* A line of its own, kept when it is empty, so that what is under it does not move as a mistake comes and goes. */
589+
/* A line of its own, kept when it is empty, so that what is under it does not move as a mistake comes and goes:
590+
two lines where the column is narrow enough for a message to wrap. */
590591
.build #source-state { margin: 0.5rem 0 0.25rem; min-height: 1.5em; }
592+
@media (max-width: 700px) { .build #source-state { min-height: 3em; } }
591593
.build #source-state[data-state="error"] { color: var(--bad); }
592594
.build .link-button, .build .problems .jump {
593595
padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer;

0 commit comments

Comments
 (0)