web: dialog system & basic small dialog

This commit is contained in:
wukko
2024-07-13 19:15:43 +06:00
parent c5fbff560b
commit 4232c3437b
7 changed files with 161 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
import Sidebar from "$components/sidebar/Sidebar.svelte";
import NotchSticker from "$components/misc/NotchSticker.svelte";
import DialogHolder from "$components/dialog/DialogHolder.svelte";
$: reduceMotion =
$settings.appearance.reduceMotion
@@ -33,6 +34,7 @@
{#if device.is.iPhone && app.is.installed}
<NotchSticker />
{/if}
<DialogHolder />
<Sidebar />
<div id="content">
<slot></slot>
@@ -302,6 +304,15 @@
font-size: 11px;
}
:global(dialog) {
max-height: 100%;
max-width: 100%;
padding: var(--padding);
border-radius: var(--border-radius);
border: none;
pointer-events: all;
}
:global(.subtext) {
font-size: 12.5px;
font-weight: 500;