Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677<script lang="ts"> import UsageView from './views/UsageView.svelte'; let { onclose }: { onclose: () => void } = $props(); let dialog: HTMLDialogElement; $effect(() => { dialog.showModal(); return () => dialog.close(); });</script>
<dialog bind:this={dialog} aria-labelledby="usage-sheet-title" {onclose}> <header> <h2 id="usage-sheet-title">usage & limits</h2> <button aria-label="close usage details" onclick={() => dialog.close()} >×</button > </header> <UsageView /></dialog>
<style> dialog { /* A bottom sheet is chrome outside a window: its heading and the reading inside it take the user's text size for the chrome, the same size the top bar's pane uses. */ --canvas-scale: var(--ui-scale); inset: auto 0 0; margin: 0 auto; padding: 0 0 env(safe-area-inset-bottom); width: min(100%, 760px); max-width: 100%; height: min(92dvh, 1000px); max-height: 100dvh; border: 0; border-radius: 18px 18px 0 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; } dialog[open] { display: flex; flex-direction: column; } dialog::backdrop { background: rgb(0 0 0 / 0.35); } header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 8px 18px; background: var(--title-bar); } h2 { margin: 0; font-size: calc(15px * var(--ui-scale)); font-weight: 600; } button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; color: var(--text); background: none; font: inherit; font-size: calc(24px * var(--ui-scale)); cursor: pointer; } button:hover, button:focus-visible { background: var(--hover); }</style>