@@ -77,6 +77,8 @@ HUD puts a new tile in the first place that applies:
A move gives the moved tile a number between its new neighbours' numbers, so it's the only tile rewritten. Where two neighbours leave no room (some fifty halvings in one place), HUD numbers that line 1, 2, 3… again. When a column's head is taken off, the next tile in its stack heads it.
A tile's menu arranges it, on the web and in the iOS app. It moves its column a place left or right, sets the column's width, stacks the tile under the column on its left, and takes it out of its stack. On a phone, where a column fills the screen, it sets no width. On the web, Shift with ← or → moves the focused column too.
/** Whether to draw its body: near enough to the view, on the tab on screen. Not drawn, it keeps what it read and where its body was scrolled; a player's music goes on, in the workspace's player, but a video or an audio field in it stops. */
live: boolean;
onfocus: () => void;
onsource: () => void;
onwidth: () => void;
onmove: (step: -1 | 1) => void;
onwidth: (width: Width) => void;
onstack: () => void;
onunstack: () => void;
onzoom: () => void;
onclose: () => void;
/** What it drew, in short, each time it draws: its card in the overview. */
<button type="button" class="menu-item" role="menuitem" onclick={() => arrange(onstack)}><Icon name="stack" /><span class="grow">Stack under the column on its left</span></button>
{/if}
{#if moves.unstack}
<button type="button" class="menu-item" role="menuitem" onclick={() => arrange(onunstack)}><Icon name="unstack" /><span class="grow">Take out of stack</span></button>
{/if}
<!-- On a phone a column is the screen's width already: no width to choose. -->
/* Width, zoom, refresh and close: where a pointer hovers, on hover or focus; always on touch. Close is outermost, as everywhere. */
/* Arrange, zoom, refresh and close: where a pointer hovers, on hover or focus, or while its menu is open; always on touch. Close is outermost, as everywhere. */
.controls {
display: none;
flex: none;
@@ -658,7 +718,8 @@
}
.tile:hover .controls,
.head:focus-within .controls {
.head:focus-within .controls,
.controls:has(.arrange[open]) {
display: flex;
}
@@ -672,7 +733,8 @@
}
.tile:hover .controls.fresh > *,
.head:focus-within .controls.fresh > * {
.head:focus-within .controls.fresh > *,
.controls.fresh:has(.arrange[open]) > * {
visibility: visible;
}
@@ -686,10 +748,54 @@
}
}
/* On a phone a column is the screen's width already: no width to choose, nothing to zoom; and its header one line, the title giving way before the handle. */
/* Its menu's button says its column's width, as 1/3; a stack's lower tile, and a phone, its icon instead. */
.arrange > summary {
width: auto;
min-width: var(--control-sm);
padding: 0 var(--space-1);
}
.arrange[open] > summary {
background: var(--hover);
color: var(--fg);
}
.width {
font: var(--text-xs) var(--font-mono);
}
.glyph:not(.alone) {
display: none;
}
.grow {
flex: 1;
min-width: 0;
}
/* The check's column, kept on every width so the words beside it line up. */
.chosen {
display: inline-grid;
flex: none;
place-items: center;
width: var(--icon);
}
/* On a phone a column is the screen's width already: no width to choose, nothing to zoom, and a menu to arrange it only where it can move; and its header one line, the title giving way before the handle. */
@media (max-width: 640px) {
.width,
.zoom {
.widths,
.zoom,
.arrange:not(.movable) {
display: none;
}
.arrange .glyph {
display: inline-flex;
}
/* Nothing on a phone takes keys. */
.menu-item > :global(kbd) {
display: none;
}
@@ -783,13 +889,6 @@
line-height: var(--leading-tight);
}
.width {
width: auto;
min-width: var(--control-sm);
padding: 0 var(--space-1);
font: var(--text-xs) var(--font-mono);
}
/* Refresh, with something newer come: its dot on its corner, ringed apart from its arrow. */