Skip to content

Commit

Permalink
Add github link on editor page
Browse files Browse the repository at this point in the history
  • Loading branch information
x0k committed Oct 12, 2024
1 parent 9aeeade commit 56b3d90
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/ppp/src/components/dropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
label?: Snippet<[T]>;
preLabel?: Snippet<[T]>;
postLabel?: Snippet<[T]>;
children?: Snippet;
}
let {
Expand All @@ -15,6 +16,7 @@
label,
preLabel,
postLabel,
children,
}: Props = $props();
let detailsElement: HTMLDetailsElement;
Expand Down Expand Up @@ -82,6 +84,7 @@
</button>
</li>
{/each}
{@render children?.()}
</ul>
</div>
</details>
10 changes: 10 additions & 0 deletions apps/ppp/src/pages/editor/_editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,16 @@
descriptionDialogElement.showModal()
}} class="invisible group-hover:visible" icon="lucide:info" />
{/snippet}
{#snippet children()}
<li>
<a target="_blank" href="https://github.com/x0k/ppp" >
<Icon icon="lucide:github" />
<span class="font-[sans-serif]">
GitHub
</span>
</a>
</li>
{/snippet}
</Dropdown>
<PanelToggle bind:panelHeight maxPanelHeight={reactiveWindow.innerHeight} />
</div>
Expand Down

0 comments on commit 56b3d90

Please sign in to comment.