Skip to content

Commit

Permalink
Handle overflowing tag contents
Browse files Browse the repository at this point in the history
Fixes #830
  • Loading branch information
allanlasser committed Nov 20, 2024
1 parent 317a064 commit fb4e014
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/common/KV.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
.value {
color: var(--blue-5, #153359);
font-style: normal;
word-break: break-all;
}
</style>
15 changes: 15 additions & 0 deletions src/lib/components/common/stories/KV.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@
<Story name="no link">
<KV key="Project" value="Old Computer Project" />
</Story>

<Story name="Long Value">
<div class="constrain-width">
<KV
key="id"
value="f2a6eaad9a6ebf4753bacd1e9731f29d67c2b84b7098165d2ae9cb83797c52452d66f8d6c342fd29a4229c31b7cd55ad91324be9f897fe5a4b858055d2f0ec65"
/>
</div>
</Story>

<style>
.constrain-width {
max-width: 20rem;
}
</style>

0 comments on commit fb4e014

Please sign in to comment.