Skip to content

Commit 1efd175

Browse files
committed
impr(tape mode): show next line if test has newlines (@NadAlaba)
1 parent c7b3e2c commit 1efd175

File tree

2 files changed

+228
-113
lines changed

2 files changed

+228
-113
lines changed

frontend/src/styles/test.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,16 @@
261261
}
262262
}
263263

264-
&.tape .word {
265-
margin: 0.25em 0.6em 0.75em 0;
266-
white-space: nowrap;
264+
&.tape {
265+
display: block;
266+
text-wrap: nowrap;
267+
.word {
268+
margin: 0.25em 0.6em 0.75em 0;
269+
display: inline-block;
270+
}
271+
.afterNewline {
272+
display: inline-block;
273+
}
267274
}
268275

269276
/* a little hack for right-to-left languages */
@@ -564,9 +571,9 @@
564571
pointer-events: none;
565572
top: -2.5rem;
566573

567-
&.focus {
568-
// top: 0rem;
569-
}
574+
//&.focus {
575+
// top: 0rem;
576+
//}
570577

571578
i {
572579
margin-right: 0.5rem;

0 commit comments

Comments
 (0)