Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Dec 4, 2024
1 parent a1f1fa4 commit 4ead0ce
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/lib/components/viewer/ReadingToolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,14 @@ Assumes it's a child of a ViewerContext
</SidebarItem>
<Menu slot="default" let:close>
{#each readModeDropdownItems.entries() as [value, name]}
{#if value !== "search"}
<MenuItem
selected={$mode === value}
href={getViewerHref({ document, mode: value, embed })}
on:click={close}
>
<svelte:component this={icons[value]} slot="icon" />
{name}
</MenuItem>
{/if}
<MenuItem
selected={$mode === value}
href={getViewerHref({ document, mode: value, embed, query })}
on:click={close}
>
<svelte:component this={icons[value]} slot="icon" />
{name}
</MenuItem>
{/each}
{#if BREAKPOINTS.WRITE_MENU && canWrite}
{#each writeModes as [value, name]}
Expand Down

0 comments on commit 4ead0ce

Please sign in to comment.