mirror of
https://github.com/Kynde/airc.git
synced 2026-10-20 08:31:38 +02:00
The control bar can type, but a keypress at a time is all that is comfortable in a car — and a prompt for a coding agent is a sentence. The Android app has IME dictation; the car browser has none, so a spoken instruction today means walking back to the laptop. This pairs airc with dais, the local voice daemon on the same machine. The browser sends the pane its viewer is on; dais records, transcribes locally and types the transcript there. No audio crosses the network and the browser needs no microphone permission — the mic that opens is the LAPTOP's. Type only, on purpose: the text lands in the pane's input box and the user submits it with the Enter button already in the bar, so a misheard prompt is readable before an agent acts on it. The ✕ discards instead — dais throws the recording away rather than typing it. `src/dais.js` keeps the two channels apart. Control is one ndjson line over the Unix socket with a 2s timeout, resolving and never rejecting, because a missing daemon is an expected state. Status needs no dais op at all: the socket's existence says the daemon is live, the mic-recording marker says the mic is open, and state.json carries mode/target/muted/dry_run. Those files already exist for statusline use, so the poll behind the button costs no socket traffic; a state.json caught mid-rewrite is parsed in a try/catch, and the two filesystem facts still answer the question the button must not get wrong. $DAIS_SOCKET is deliberately ignored even though dais's own CLI honors it — if airc read the env, a private test daemon exported in a shell could silently re-aim the microphone of a running server. The button reports the state of the pairing rather than failing mysteriously. Not configured: no buttons at all, nothing to explain. Configured but the daemon is down: visible and DISABLED with the reason in the title, because a control that vanishes mid-drive is worse than one that says why it cannot help. Muted or dry-run gets appended to the title, since otherwise the tap looks like it worked and no text ever appears. The poll runs ~1/s while recording, ~4s otherwise, and not at all while the control bar is closed — airc's own no-work-when-nobody-is- watching rule. The browser always sends `toggle` and lets dais resolve it, so a missed poll cannot invert the latch. A mic tap drops auto mode, mirroring "the first keystroke drops auto": the transcript is typed but not submitted, so auto must not slide the view — and the user's Enter tap — to a different pane than the recording was aimed at. Both routes are control-gated and 404 below that, and both are gated on dais.enabled, which defaults to false. That default is a security decision, not tidiness: the control token was already a remote-shell credential, but with this on it also opens a microphone, which is a different class of capability. Status is control-level too, unlike /api/attention — "the mic on that laptop is open right now" is not something a read-only share link should report. /api/config exposes only dais.enabled, never the socket path, and the pane goes through the same resolveInputTarget as every keystroke so the ^%\d+$ trust boundary holds. 503 marks "could not reach dais" apart from 409 "dais refused", and refusals surface in the strip's note area — which on a phone becomes a full-width line, the first real use of that long-dormant element. On mobile the mic and ✕ take a row of their own so the arrow row stays the tidy six columns it was, and the mic gets four of those columns to the ✕'s two: one is aimed at a driver and the other throws work away, so they should not be equally easy to hit by accident. Verified end to end against an isolated pair — a private tmux server, a test dais daemon with its own runtime dirs, a test airc on another port — covering both token levels, all four actions, the delivery landing unsubmitted in the viewed pane, the button grey-out when the daemon is killed mid-session, and the 409/503 split. test/dais.test.js pins the socket-path precedence, the status reads including a torn state.json, the exact ndjson line, and the fail-soft. No Android change this round: app.js and MainActivity.kt are otherwise mirrors, so docs/dais.md records the divergence as deliberate — the gap this fills does not exist on a device that already has IME dictation.
660 lines
15 KiB
CSS
660 lines
15 KiB
CSS
@font-face {
|
|
font-family: "Airc Fira Code";
|
|
src: url("/fonts/FiraCode-Regular.ttf") format("truetype");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
.theme-dark {
|
|
--bg: #101314;
|
|
--fg: #d7e1df;
|
|
--term-bg: #050707;
|
|
--chrome: #171d1c;
|
|
--border: #30403d;
|
|
--muted: #93a39f;
|
|
--accent: #49d17d;
|
|
--warn: #d4a72c;
|
|
--bad: #ff7070;
|
|
--c0: #363b40; --c1: #ff7070; --c2: #49d17d; --c3: #d4a72c;
|
|
--c4: #58a6ff; --c5: #d2a8ff; --c6: #56d4dd; --c7: #d7e1df;
|
|
--c8: #8b949e; --c9: #ff8f8f; --c10: #70e39b; --c11: #eac55f;
|
|
--c12: #79c0ff; --c13: #dcbdfb; --c14: #76e3ea; --c15: #ffffff;
|
|
}
|
|
|
|
.theme-day {
|
|
--bg: #e8eaec;
|
|
--fg: #1f2328;
|
|
--term-bg: #ffffff;
|
|
--chrome: #f6f8fa;
|
|
--border: #afb8c1;
|
|
--muted: #57606a;
|
|
--accent: #1a7f37;
|
|
--warn: #9a6700;
|
|
--bad: #c5302f;
|
|
--c0: #24292f; --c1: #c5302f; --c2: #1a7f37; --c3: #9a6700;
|
|
--c4: #0969da; --c5: #8250df; --c6: #1b7c83; --c7: #6e7781;
|
|
--c8: #57606a; --c9: #a40e26; --c10: #116329; --c11: #7d4e00;
|
|
--c12: #0550ae; --c13: #6639ba; --c14: #3192aa; --c15: #8c959f;
|
|
}
|
|
|
|
/* Solarized light: dark, low-saturation ink on a warm pale ground. */
|
|
.theme-sunny {
|
|
--bg: #eee8d5;
|
|
--fg: #586e75;
|
|
--term-bg: #fdf6e3;
|
|
--chrome: #e4ddc6;
|
|
--border: #d7cfb8;
|
|
--muted: #657b83;
|
|
--accent: #859900;
|
|
--warn: #b58900;
|
|
--bad: #dc322f;
|
|
--c0: #073642; --c1: #dc322f; --c2: #859900; --c3: #b58900;
|
|
--c4: #268bd2; --c5: #d33682; --c6: #2aa198; --c7: #657b83;
|
|
--c8: #586e75; --c9: #cb4b16; --c10: #859900; --c11: #b58900;
|
|
--c12: #268bd2; --c13: #6c71c4; --c14: #2aa198; --c15: #93a1a1;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; }
|
|
body {
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: "Airc Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
body.mobile-view {
|
|
height: 100dvh;
|
|
overflow: hidden;
|
|
}
|
|
#strip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
background: var(--chrome);
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 14px;
|
|
flex: none;
|
|
}
|
|
#strip .spacer { flex: 1; }
|
|
#strip button {
|
|
min-height: 40px;
|
|
min-width: 48px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
padding: 0 10px;
|
|
}
|
|
#mobile-menu-toggle {
|
|
display: none;
|
|
}
|
|
#strip button.active {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
.dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: var(--warn);
|
|
flex: none;
|
|
}
|
|
.dot.live { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
|
|
.dot.stale { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
|
|
#state { min-width: 78px; }
|
|
#note { color: var(--warn); }
|
|
#dashboard {
|
|
color: var(--muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
#dashboard .ok { color: var(--accent); }
|
|
#dashboard .bad { color: var(--bad); }
|
|
#alerts {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
#alerts[hidden] { display: none; }
|
|
#alerts .chip {
|
|
min-height: 30px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
padding: 0 10px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
/* "waiting" is the urgent class: a coding agent is blocked on a prompt.
|
|
Cyan, matching the Android "needs you" chip. */
|
|
#alerts .chip.waiting {
|
|
border-color: var(--c6);
|
|
color: var(--c6);
|
|
animation: pulse 1.6s ease-in-out infinite;
|
|
}
|
|
/* "idle-input" is ambient: an agent finished and awaits the next instruction. */
|
|
#alerts .chip.idle-input {
|
|
border-color: var(--muted);
|
|
color: var(--muted);
|
|
}
|
|
/* "busy" is informational: an agent is actively working — no action needed.
|
|
Amber, matching the Android "working" chip. */
|
|
#alerts .chip.busy {
|
|
border-color: var(--warn);
|
|
color: var(--warn);
|
|
}
|
|
@keyframes pulse { 50% { opacity: 0.45; } }
|
|
/* When auto mode is actively following a flagged pane, make the toggle glow.
|
|
Cyan, matching the "needs you" chip it tracks. */
|
|
#auto-toggle.armed {
|
|
border-color: var(--c6);
|
|
color: var(--c6);
|
|
}
|
|
/* A pane needs attention but auto is off — nudge the user to enable it. */
|
|
#auto-toggle.hot {
|
|
border-color: var(--c6);
|
|
color: var(--c6);
|
|
animation: pulse 1.6s ease-in-out infinite;
|
|
}
|
|
#term-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
background: var(--term-bg);
|
|
padding: 8px;
|
|
}
|
|
#term-wrap.stale #term,
|
|
#term-wrap.stale #term-grid { opacity: 0.45; }
|
|
#term {
|
|
margin: 0;
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
line-height: 1.25;
|
|
white-space: pre;
|
|
color: var(--fg);
|
|
}
|
|
#term[hidden],
|
|
#term-grid[hidden] { display: none; }
|
|
|
|
/* Window view: panes are absolutely positioned on a character grid whose own
|
|
size is set inline from the tmux window dimensions and the fitted font. The
|
|
gaps between panes are tmux's pane-border rows/columns, left blank rather than
|
|
drawn — cleaner than the ASCII │ ─ borders. */
|
|
#term-grid {
|
|
position: relative;
|
|
font-size: 13px;
|
|
line-height: 1.25;
|
|
}
|
|
.gpane {
|
|
position: absolute;
|
|
margin: 0;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
white-space: pre;
|
|
overflow: hidden;
|
|
color: var(--fg);
|
|
outline: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
/* The pane tmux marks active — a subtle ambient ring. */
|
|
.gpane.active {
|
|
outline-color: var(--muted);
|
|
}
|
|
/* The pane that receives typed input. The user clicks to set this; it defaults
|
|
to the active pane. Accent ring so it reads as "your keystrokes land here". */
|
|
.gpane.target {
|
|
outline: 2px solid var(--accent);
|
|
}
|
|
.gpane-cursor {
|
|
position: absolute;
|
|
background: var(--fg);
|
|
opacity: 0.7;
|
|
animation: blink 1.1s step-end infinite;
|
|
pointer-events: none;
|
|
}
|
|
#control-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
background: var(--chrome);
|
|
border-top: 1px solid var(--border);
|
|
flex: none;
|
|
}
|
|
#control-bar[hidden] { display: none; }
|
|
#control-text {
|
|
min-width: 0;
|
|
flex: 1;
|
|
min-height: 42px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--term-bg);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
padding: 0 10px;
|
|
}
|
|
#control-bar button {
|
|
min-height: 42px;
|
|
min-width: 58px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
padding: 0 10px;
|
|
}
|
|
/* Voice dictation (dais). The mic sits next to `send` because it produces the
|
|
same thing — text in the pane's input box — and it is deliberately the widest
|
|
button here: it is the one control aimed at a driver. Disabled means dais
|
|
isn't running; it stays VISIBLE so the reason can be read from its title. */
|
|
#control-mic {
|
|
min-width: 96px;
|
|
flex: none;
|
|
}
|
|
#control-mic-discard {
|
|
min-width: 48px;
|
|
flex: none;
|
|
}
|
|
#control-mic[hidden],
|
|
#control-mic-discard[hidden] {
|
|
display: none;
|
|
}
|
|
#control-bar button:disabled {
|
|
color: var(--muted);
|
|
opacity: 0.55;
|
|
}
|
|
/* Recording: red like the "bad" state on purpose — an open microphone is
|
|
something you want to END — and the pulse mirrors the attention chip. */
|
|
#control-mic.recording {
|
|
border-color: var(--bad);
|
|
color: var(--bad);
|
|
animation: pulse 1.6s ease-in-out infinite;
|
|
}
|
|
#control-left,
|
|
#control-right {
|
|
display: none;
|
|
}
|
|
#control-ctrl-wrap {
|
|
position: relative;
|
|
flex: none;
|
|
}
|
|
#control-ctrl {
|
|
min-width: 48px;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
}
|
|
#control-ctrl.active {
|
|
border-color: var(--accent, var(--fg));
|
|
}
|
|
#control-ctrl-menu {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: calc(100% + 8px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
background: var(--chrome);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
|
|
z-index: 11;
|
|
}
|
|
#control-ctrl-menu[hidden] { display: none; }
|
|
#control-ctrl-menu button {
|
|
min-width: 64px;
|
|
}
|
|
#cursor {
|
|
position: absolute;
|
|
background: var(--fg);
|
|
opacity: 0.7;
|
|
animation: blink 1.1s step-end infinite;
|
|
pointer-events: none;
|
|
}
|
|
@keyframes blink { 50% { opacity: 0.1; } }
|
|
|
|
.fg-0 { color: var(--c0); } .bg-0 { background: var(--c0); }
|
|
.fg-1 { color: var(--c1); } .bg-1 { background: var(--c1); }
|
|
.fg-2 { color: var(--c2); } .bg-2 { background: var(--c2); }
|
|
.fg-3 { color: var(--c3); } .bg-3 { background: var(--c3); }
|
|
.fg-4 { color: var(--c4); } .bg-4 { background: var(--c4); }
|
|
.fg-5 { color: var(--c5); } .bg-5 { background: var(--c5); }
|
|
.fg-6 { color: var(--c6); } .bg-6 { background: var(--c6); }
|
|
.fg-7 { color: var(--c7); } .bg-7 { background: var(--c7); }
|
|
.fg-8 { color: var(--c8); } .bg-8 { background: var(--c8); }
|
|
.fg-9 { color: var(--c9); } .bg-9 { background: var(--c9); }
|
|
.fg-10 { color: var(--c10); } .bg-10 { background: var(--c10); }
|
|
.fg-11 { color: var(--c11); } .bg-11 { background: var(--c11); }
|
|
.fg-12 { color: var(--c12); } .bg-12 { background: var(--c12); }
|
|
.fg-13 { color: var(--c13); } .bg-13 { background: var(--c13); }
|
|
.fg-14 { color: var(--c14); } .bg-14 { background: var(--c14); }
|
|
.fg-15 { color: var(--c15); } .bg-15 { background: var(--c15); }
|
|
.fg-inv { color: var(--term-bg); }
|
|
.bg-inv { background: var(--fg); }
|
|
.b { font-weight: 700; }
|
|
.dim { opacity: 0.6; }
|
|
.i { font-style: italic; }
|
|
.u { text-decoration: underline; }
|
|
|
|
#picker {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10;
|
|
}
|
|
#picker[hidden] { display: none; }
|
|
#picker-box {
|
|
background: var(--chrome);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
min-width: 320px;
|
|
max-width: 92vw;
|
|
max-height: 80vh;
|
|
overflow: auto;
|
|
}
|
|
#picker-title {
|
|
color: var(--muted);
|
|
margin-bottom: 10px;
|
|
}
|
|
#picker-list button,
|
|
#picker-close {
|
|
display: flex;
|
|
width: 100%;
|
|
min-height: 46px;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
margin-bottom: 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
padding: 0 12px;
|
|
text-align: left;
|
|
}
|
|
#picker-list button.selected {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
#picker-list button.picker-session {
|
|
font-weight: 600;
|
|
min-height: 40px;
|
|
background: var(--chrome);
|
|
margin-top: 6px;
|
|
}
|
|
#picker-list button.picker-session:first-child {
|
|
margin-top: 0;
|
|
}
|
|
#picker-list button.picker-window {
|
|
margin-left: 12px;
|
|
width: calc(100% - 12px);
|
|
min-height: 40px;
|
|
font-weight: 600;
|
|
}
|
|
#picker-list button.picker-pane {
|
|
margin-left: 28px;
|
|
width: calc(100% - 28px);
|
|
}
|
|
|
|
/* Wide touch screens up to 1024px get the mobile view; the cap keeps the Tesla
|
|
browser (1180px normal viewport, see docs/tesla-browser.md) on the wide view. */
|
|
@media (max-width: 720px), ((pointer: coarse) and (max-width: 1024px)) {
|
|
html,
|
|
body {
|
|
height: 100dvh;
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
}
|
|
|
|
#strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
padding: calc(6px + env(safe-area-inset-top)) 6px 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#strip button {
|
|
min-height: 36px;
|
|
min-width: 44px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
#state {
|
|
order: 1;
|
|
min-width: 0;
|
|
max-width: 78px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#pane-label {
|
|
order: 3;
|
|
flex: 1 1 0;
|
|
min-width: 72px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#strip .spacer,
|
|
#dashboard,
|
|
#note {
|
|
display: none;
|
|
}
|
|
|
|
/* …but a message must still be readable on a phone: #note is hidden to save
|
|
strip room, not when it actually has something to say (voice refusals). */
|
|
#note:not(:empty) {
|
|
display: block;
|
|
order: 5;
|
|
flex: 1 1 100%;
|
|
font-size: 11px;
|
|
}
|
|
|
|
#mobile-menu-toggle {
|
|
order: 4;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: none;
|
|
}
|
|
|
|
#font-minus,
|
|
#font-plus,
|
|
#font-fit,
|
|
#controls-toggle,
|
|
#theme-toggle,
|
|
#pause-toggle {
|
|
display: none;
|
|
}
|
|
|
|
body.mobile-menu-open #font-minus,
|
|
body.mobile-menu-open #font-plus,
|
|
body.mobile-menu-open #font-fit,
|
|
body.mobile-menu-open #controls-toggle:not([hidden]),
|
|
body.mobile-menu-open #theme-toggle,
|
|
body.mobile-menu-open #pause-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
order: 10;
|
|
}
|
|
|
|
#auto-toggle:not([hidden]) {
|
|
order: 2;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: none;
|
|
}
|
|
|
|
body.mobile-menu-open #mobile-menu-toggle {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
body.mobile-menu-open #strip::after {
|
|
content: "";
|
|
order: 9;
|
|
flex: 0 0 100%;
|
|
height: 0;
|
|
}
|
|
|
|
#dot {
|
|
order: 0;
|
|
}
|
|
|
|
#alerts {
|
|
order: 20;
|
|
flex: 1 0 100%;
|
|
min-width: 0;
|
|
gap: 5px;
|
|
overflow-x: auto;
|
|
padding-bottom: 2px;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
#alerts::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
#alerts .chip {
|
|
min-height: 28px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
#term-wrap {
|
|
min-height: 0;
|
|
padding: 8px;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
#term {
|
|
min-width: max-content;
|
|
}
|
|
|
|
#control-bar {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
gap: 6px;
|
|
padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
#control-bar[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
#control-text {
|
|
grid-column: 1 / -2;
|
|
min-height: 40px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
#control-send {
|
|
grid-column: -2 / -1;
|
|
}
|
|
|
|
/* Mic and ✕ take a row of their own, so the arrow/ctrl row below stays the
|
|
tidy six columns it was before dictation existed. The mic gets four of the
|
|
six columns: it's the one control aimed at a driver, and the ✕ throws a
|
|
recording away, so they should not be equally easy to hit by accident. */
|
|
#control-mic {
|
|
grid-column: 1 / 5;
|
|
min-width: 0;
|
|
}
|
|
|
|
#control-mic-discard {
|
|
grid-column: 5 / -1;
|
|
min-width: 0;
|
|
}
|
|
|
|
#control-bar button {
|
|
min-width: 0;
|
|
min-height: 40px;
|
|
padding: 0 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#control-ctrl-wrap {
|
|
min-width: 0;
|
|
}
|
|
|
|
#control-ctrl {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
#control-left,
|
|
#control-right {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
#control-ctrl-menu {
|
|
right: auto;
|
|
left: 0;
|
|
bottom: calc(100% + 8px);
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(64px, 1fr));
|
|
max-width: calc(100vw - 12px);
|
|
}
|
|
|
|
#control-ctrl-menu[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
#picker {
|
|
align-items: flex-end;
|
|
}
|
|
|
|
#picker-box {
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: none;
|
|
max-height: 86dvh;
|
|
border-right: 0;
|
|
border-bottom: 0;
|
|
border-left: 0;
|
|
border-radius: 8px 8px 0 0;
|
|
padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
#picker-list button,
|
|
#picker-close {
|
|
min-height: 44px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
#picker-list button.picker-window {
|
|
margin-left: 8px;
|
|
width: calc(100% - 8px);
|
|
}
|
|
|
|
#picker-list button.picker-pane {
|
|
margin-left: 18px;
|
|
width: calc(100% - 18px);
|
|
}
|
|
}
|