Skip to content

Commit e939603

Browse files
committed
fix(layout): prevent output text from overflowing past sidebar
Long unbroken text in notes and @pastes was extending past the browser window width, crowding out the sidebar. Two fixes: - Change word-wrap: normal to overflow-wrap: break-word on .output - Add min-width: 0 to main grid child to constrain its column track
1 parent c42f1d3 commit e939603

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ main {
281281
/* Ensure main area doesn't get spacing when sidebar is hidden */
282282
padding-right: 0;
283283
min-height: 0;
284+
min-width: 0; /* Prevent grid child from overflowing its column track */
284285
display: flex;
285286
flex-direction: column;
286287
}

src/components/output.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
color: #ffffff;
55
background-color: var(--color-bg-deepest);
66
white-space: pre-wrap;
7-
word-wrap: normal;
7+
overflow-wrap: break-word;
88
padding: var(--space-4);
99
border: none;
1010
border-radius: 0;

0 commit comments

Comments
 (0)