mirror of
https://github.com/bitbaum/whenkit.git
synced 2026-12-06 07:48:13 +01:00
Fourteen chips side by side gave the strip a wide min-content width, and a CSS grid item (a modal dialog's content) grows to that: in OrangeCat's booking dialog it pushed Send off-screen at 390px. The strip now claims no inline size of its own (contain: inline-size) and scrolls inside whatever it is given. The browser check could not see this: the demo gave its grid cells min-width: 0. It now has a dialog-shaped container and checks the dialog's button stays on screen — verified to FAIL without the fix. Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
79 lines
2.2 KiB
HTML
79 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>whenkit demo</title>
|
|
<link rel="stylesheet" href="../node_modules/@bitbaum/design-tokens/tokens.css" />
|
|
<link rel="stylesheet" href="../styles.css" />
|
|
<style>
|
|
/* Page chrome only — the picker's look comes from styles.css + tokens. */
|
|
body {
|
|
margin: 0;
|
|
font-family: system-ui, sans-serif;
|
|
}
|
|
.theme {
|
|
padding: 24px 16px;
|
|
background: hsl(var(--surface-page, 0 0% 98%));
|
|
color: hsl(var(--text-primary, 0 0% 10%));
|
|
min-height: 100vh;
|
|
box-sizing: border-box;
|
|
}
|
|
.grid {
|
|
display: grid;
|
|
gap: 32px;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
h2 {
|
|
font-size: 14px;
|
|
margin: 0 0 12px;
|
|
opacity: 0.6;
|
|
font-weight: 500;
|
|
}
|
|
/* Shaped like a modal dialog (shadcn/Radix DialogContent): a grid whose
|
|
column is sized by its content. A picker that props this open
|
|
pushes the dialog's buttons off-screen. */
|
|
.dialog-like {
|
|
display: grid;
|
|
gap: 16px;
|
|
width: calc(100% - 32px);
|
|
max-width: 28rem;
|
|
margin: 32px auto 0;
|
|
padding: 24px;
|
|
border: 1px solid hsl(var(--border-default, 0 0% 82%));
|
|
border-radius: 12px;
|
|
background: hsl(var(--surface-base, 0 0% 100%));
|
|
box-sizing: border-box;
|
|
}
|
|
.resolved {
|
|
font-size: 11px;
|
|
opacity: 0.5;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="theme">
|
|
<div class="grid">
|
|
<section>
|
|
<h2>Hourly — a session</h2>
|
|
<div id="hourly"></div>
|
|
</section>
|
|
<section>
|
|
<h2>Daily — a studio by the day</h2>
|
|
<div id="daily"></div>
|
|
</section>
|
|
<section>
|
|
<h2>A plain date field</h2>
|
|
<div id="field"></div>
|
|
</section>
|
|
</div>
|
|
<div class="dialog-like" id="dialog"></div>
|
|
</main>
|
|
<script src="./dist/demo.js"></script>
|
|
</body>
|
|
</html>
|