From a12417d4e9c8dc304f6cdf71a523a3898c499bd8 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 23 Jun 2023 21:27:55 +0200 Subject: [PATCH] Added copy button to error messages --- frontend/src/components/blankstate.svelte | 4 ++-- frontend/src/components/grid.svelte | 19 ++++++++++++++++++- frontend/src/components/tabbar.svelte | 3 ++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/blankstate.svelte b/frontend/src/components/blankstate.svelte index d4463ce..5d12d5c 100644 --- a/frontend/src/components/blankstate.svelte +++ b/frontend/src/components/blankstate.svelte @@ -18,7 +18,7 @@ {/if}

{title}

-

{label}

+

{label}

@@ -38,7 +38,7 @@ height: 150px; width: auto; } - .content :global(svg) { + .content > :global(svg) { height: 40px; width: auto; } diff --git a/frontend/src/components/grid.svelte b/frontend/src/components/grid.svelte index 879e6bb..060f361 100644 --- a/frontend/src/components/grid.svelte +++ b/frontend/src/components/grid.svelte @@ -1,6 +1,8 @@
@@ -33,7 +46,11 @@ {#if busy} {:else if errorTitle || errorDescription} - + + + {:else} {#if showHeaders && columns.some(col => col.title)} diff --git a/frontend/src/components/tabbar.svelte b/frontend/src/components/tabbar.svelte index 0fc1def..31b297c 100644 --- a/frontend/src/components/tabbar.svelte +++ b/frontend/src/components/tabbar.svelte @@ -61,7 +61,7 @@ } li { display: inline-block; - flex-grow: 1; + flex: 1; position: relative; } @@ -101,6 +101,7 @@ border-color: #00008b; cursor: not-allowed; } + nav.tabs.multiline button.tab .label { display: block; margin-top: 4px;