Skip to content

Commit

Permalink
Break inside document header title
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Nov 20, 2024
1 parent a8adb45 commit c5d35c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/documents/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
font-weight: var(--font-semibold);
font-size: var(--font-xl);
line-height: 1.2;
word-break: break-all;
}
.access {
flex: 0 1 auto;
Expand Down
11 changes: 11 additions & 0 deletions src/lib/components/documents/stories/Header.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@
name="With HTML description"
args={{ document: { ...document, description: html } }}
/>

<Story
name="With Long Title"
args={{
document: {
...document,
title:
"This%20is%20an%20unbroken%20title%20that%20just%20goes%20on%20and%20on%20and%20on%20why%20did%20nobody%20edit%20it%3F",
},
}}
/>

0 comments on commit c5d35c6

Please sign in to comment.