Rework modal header structure

This commit is contained in:
Jon Staab
2026-02-02 10:09:14 -08:00
parent 4480132c74
commit fb2d78fd57
55 changed files with 224 additions and 287 deletions
+4 -6
View File
@@ -11,6 +11,8 @@
import Modal from "@lib/components/Modal.svelte"
import ModalBody from "@lib/components/ModalBody.svelte"
import ModalHeader from "@lib/components/ModalHeader.svelte"
import ModalTitle from "@lib/components/ModalTitle.svelte"
import ModalSubtitle from "@lib/components/ModalSubtitle.svelte"
import ModalFooter from "@lib/components/ModalFooter.svelte"
import SpaceAccessRequest from "@app/components/SpaceAccessRequest.svelte"
import {pushModal, clearModals} from "@app/util/modal"
@@ -42,12 +44,8 @@
<Modal tag="form" onsubmit={preventDefault(requestAccess)}>
<ModalBody>
<ModalHeader>
{#snippet title()}
<div>Access Error</div>
{/snippet}
{#snippet info()}
<div>We couldn't connect you to this space.</div>
{/snippet}
<ModalTitle>Access Error</ModalTitle>
<ModalSubtitle>We couldn't connect you to this space.</ModalSubtitle>
</ModalHeader>
<p>
We received an error from the relay indicating you don't have access to {displayRelayUrl(