From df9d15dda54d8d874556a33af62d73be1c31e2e4 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Tue, 4 May 2021 13:58:02 +0200 Subject: [PATCH] Handle org not found --- public/index.css | 16 +++++++++++++--- src/Modal.svelte | 3 ++- src/base/orgs/Org.ts | 10 +++++++--- src/base/orgs/Profile.svelte | 30 ++++++++++++++++++++++++------ 4 files changed, 46 insertions(+), 13 deletions(-) diff --git a/public/index.css b/public/index.css index 611fdbd38..1c8cc53ce 100644 --- a/public/index.css +++ b/public/index.css @@ -41,6 +41,7 @@ --color-foreground-5: #8594a1; --color-foreground-6: #d3dee8; --color-background: #0b131a; + --color-glow: #5555ff22; --font-family-sans-serif: Inter, sans-serif; --font-family-monospace: monospace; @@ -175,7 +176,7 @@ input.wide { } .modal { - padding: 2rem; + padding: 2rem 3rem; border: 1px solid var(--color-secondary); background: var(--color-background); box-shadow: 8px 8px 64px var(--box-shadow-color); @@ -183,17 +184,26 @@ input.wide { max-width: 760px; text-align: center; } +.modal.modal-subtle { + border: none; + box-shadow: none; + background: radial-gradient( + var(--color-glow) 0%, + transparent 70% + ); +} .modal-title { font-size: 1.75rem; margin-bottom: 2rem; color: var(--color-secondary); text-align: center; + text-overflow: ellipsis; + overflow-x: hidden; } .modal-body { overflow-x: hidden; text-overflow: ellipsis; - margin-top: 2em; - margin-bottom: 3em; + margin: 3rem 0; } .modal-actions { margin-top: 2rem; diff --git a/src/Modal.svelte b/src/Modal.svelte index b8433924f..408ecc9d6 100644 --- a/src/Modal.svelte +++ b/src/Modal.svelte @@ -3,6 +3,7 @@ export let floating = false; export let error: Error | null = null; + export let subtle = false; let dispatch = createEventDispatcher(); @@ -37,7 +38,7 @@ {/if}
-