Skip to content

Commit

Permalink
fix: no text-wrapping for URL collapsibles
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Nov 17, 2023
1 parent ac678ef commit d792c17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lib/Collapsible.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,28 @@
{#if level == "2"}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<div title={header} style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<h2><i class="bx {icon}" />{header}</h2>
</div>
{/if}
{#if level == "3"}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<div title={header} style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<h3><i class="bx {icon}" />{header}</h3>
</div>
{/if}
{#if level == "4"}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<div title={header} style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<h4><i class="bx {icon}" />{header}</h4>
</div>
{/if}
{#if level == "5"}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<div title={header} style="cursor:pointer" id={header} on:click={toggle} class={class_}>
<h6><i class="bx {icon}" />{header}</h6>
</div>
{/if}
Expand Down
5 changes: 4 additions & 1 deletion src/lib/feedview/entries/URLCollapsible.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{#if level == "4"}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div style="cursor:pointer" id={entry.id} on:click={toggle} class={class_}>
<div title={entry.title} style="cursor:pointer" id={entry.id} on:click={toggle} class={class_}>
<h4>
<i class="bx {icon}" />
<a href={lookupID} on:click={openLink}>{entry.id}: {entry.title}</a>
Expand All @@ -70,6 +70,9 @@
</div>

<style>
.collapsible {
white-space: nowrap;
}
.body {
padding-left: 3rem;
}
Expand Down

0 comments on commit d792c17

Please sign in to comment.