Skip to content

Commit 5253554

Browse files
authored
Merge pull request scratchfoundation#4854 from towerofnix/list-whitespace
Always display whitespace in list monitors
2 parents fde5b56 + 81c22f3 commit 5253554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/monitor/monitor.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
margin: 0 5px;
4444
border-radius: calc($space / 2);
4545
padding: 0 2px;
46+
white-space: pre-wrap;
4647
transform: translateZ(0); /* Fixes flickering in Safari */
4748
}
4849

@@ -53,6 +54,7 @@
5354
text-align: center;
5455
color: white;
5556
font-size: 1rem;
57+
white-space: pre-wrap;
5658
transform: translateZ(0); /* Fixes flickering in Safari */
5759
}
5860

@@ -149,7 +151,7 @@
149151
overflow: hidden; /* Don't let long values escape container */
150152
text-overflow: ellipsis;
151153
user-select: text; /* Allow selecting list values for 2.0 compatibility, only relevant in player */
152-
white-space: nowrap;
154+
white-space: pre;
153155
}
154156

155157
.list-input {

0 commit comments

Comments
 (0)