From 9c3c7719b6a4e8d4558e84a3fb264d61d22aea8f Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sun, 26 Jan 2025 18:27:56 -0500 Subject: [PATCH] fix: overflow scrollable ui for large jwt --- src/routes/+page.svelte | 18 ++++++++++-------- src/routes/search/+page.svelte | 8 +++++++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c9474c8..0e437fb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -68,7 +68,7 @@
-
+
- - -
{JSON.stringify(header, null, 2)}
- -
{JSON.stringify(payload, null, 2)}
+ +
+ +
{JSON.stringify(header, null, 2)}
+ +
{JSON.stringify(payload, null, 2)}
+
diff --git a/src/routes/search/+page.svelte b/src/routes/search/+page.svelte index 36ec563..3018a7a 100644 --- a/src/routes/search/+page.svelte +++ b/src/routes/search/+page.svelte @@ -79,11 +79,17 @@ return date; } } + + function onKeyDown(e: KeyboardEvent) { + if (e.key === 'Escape') { + ui.goBack(); + } + } - + No JWT found in Clipboard.