fix(ui): fill the viewport instead of a rounded inset frame
This commit is contained in:
1 parent
095b4ccfb5
commit
343da517bf
2 files changed
+3
-20
No files matched your search
+3
-11
@@ -40,18 +40,10 @@ watch(() => accounts.status?.user, (user) => {
|
||||
<div v-if="!accounts.status" class="mx-auto max-w-md p-8" role="status"><p>{{accounts.error||'Connecting to Archie…'}}</p><button v-if="accounts.error" class="mt-3 underline" @click="accounts.load">Retry</button></div>
|
||||
<AccountEntry v-else-if="!accounts.status.user || accounts.status.setup_required || reauthenticate" />
|
||||
<TooltipProvider v-else :delay-duration="350">
|
||||
<!--
|
||||
One contained, rounded surface floating on the canvas `body` carries:
|
||||
framing the workspace gives the panels an edge to sit against, and lets
|
||||
the light behind read through rather than stopping at the first opaque
|
||||
card. The frame is a desktop affordance, so at the narrow breakpoint it
|
||||
goes edge to edge instead of insetting a rounded card on a phone.
|
||||
|
||||
`backdrop-filter` makes this a containing block for `position: fixed`,
|
||||
so the chat launcher has to render outside this element.
|
||||
-->
|
||||
<!-- `backdrop-filter` makes this a containing block for `position: fixed`,
|
||||
so the chat launcher has to render outside this element. -->
|
||||
<div
|
||||
class="flex min-h-[calc(100vh-2rem)] flex-col overflow-clip rounded-xl border border-[var(--hairline)] bg-[var(--workspace)] shadow-[var(--shadow-workspace)] backdrop-blur-[28px] backdrop-saturate-[1.2] max-lg:min-h-screen max-lg:rounded-none max-lg:border-0 max-lg:shadow-none"
|
||||
class="flex min-h-screen flex-col overflow-clip bg-[var(--workspace)] backdrop-blur-[28px] backdrop-saturate-[1.2]"
|
||||
>
|
||||
<Topbar :hidden="hidden" />
|
||||
<!-- `max-md:pb-24` keeps the page clear of the floating chat launcher,
|
||||
|
||||
@@ -236,7 +236,6 @@
|
||||
@apply bg-background text-foreground;
|
||||
@apply font-sans;
|
||||
background: var(--background);
|
||||
padding: 1rem;
|
||||
}
|
||||
/* The focus floor. A component may style its own focus state; this
|
||||
guarantees that nothing is ever focused and invisible for a keyboard
|
||||
@@ -246,14 +245,6 @@
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
/* The frame is a desktop affordance: below this width the workspace goes
|
||||
edge to edge, because a rounded card inset on a phone wastes the only
|
||||
axis that matters. */
|
||||
@media (width < 64rem) {
|
||||
body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
/* Rows in a floating menu are the one thing a finger cannot aim at with a
|
||||
mouse's precision, and a min height there cannot deform a layout because
|
||||
the panel is sized by its content. Everything else keeps its own size:
|
||||
|
||||
Reference in new issue
Block a user