WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5a66993

Browse files
committed
Add info popup next to settings icon linking GitHub, Chrome ext, FF addon
1 parent e5a9b82 commit 5a66993

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

web/src/routes/+page.svelte

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import { on } from "svelte/events";
2828
import ActionsPopover from "./ActionsPopover.svelte";
2929
import LoadDiffDialog from "./LoadDiffDialog.svelte";
30+
import InfoPopup from "./InfoPopup.svelte";
31+
import { Button } from "bits-ui";
3032
3133
const globalOptions = GlobalOptions.init();
3234
const viewer = MultiFileDiffViewerState.init();
@@ -225,6 +227,38 @@
225227
<LoadDiffDialog />
226228
<ActionsPopover />
227229
{@render settingsPopover()}
230+
<InfoPopup>
231+
<div class="flex flex-col gap-1">
232+
<h2 class="font-semibold">Info</h2>
233+
<Button.Root
234+
href="https://github.com/PaperMC/diff-viewer"
235+
class="flex items-center gap-2 hover:text-primary"
236+
target="_blank"
237+
rel="noopener noreferrer"
238+
>
239+
<span class="iconify size-4 shrink-0 text-em-med octicon--mark-github-16" aria-hidden="true"></span>
240+
GitHub Repository
241+
</Button.Root>
242+
<Button.Root
243+
href="https://chromewebstore.google.com/detail/patch-roulette/feaaoepdocmiibjilhoahgldkaajfnhb"
244+
class="flex items-center gap-2 hover:text-primary"
245+
target="_blank"
246+
rel="noopener noreferrer"
247+
>
248+
<span class="iconify size-4 shrink-0 text-em-med octicon--download-16" aria-hidden="true"></span>
249+
Chrome Extension
250+
</Button.Root>
251+
<Button.Root
252+
href="https://addons.mozilla.org/en-US/firefox/addon/patch-roulette/"
253+
class="flex items-center gap-2 hover:text-primary"
254+
target="_blank"
255+
rel="noopener noreferrer"
256+
>
257+
<span class="iconify size-4 shrink-0 text-em-med octicon--download-16" aria-hidden="true"></span>
258+
Firefox Add-on
259+
</Button.Root>
260+
</div>
261+
</InfoPopup>
228262
</div>
229263
</div>
230264
<div class="mb-1 flex flex-row items-center gap-2">

0 commit comments

Comments
 (0)