feat(local-model): one frame for the window, honest figures, a table for the consent

The window is one frame for the whole flow: a fixed height on desktop, App
Settings' boxed close button, the buttons in a foot of their own outside
the part that scrolls, so a click never moves the next button away and
nothing is cut off; the short screens are centred in it on desktop and sit
above the buttons on a phone.

The chooser lists the pick first and then the other models by download
size, largest first, a column the reader can see. A pick that only just
fits says "Best fit, tight". The memory figure is an estimate and says so
once, in whole GB; its legend names the peak, and the installed line uses
the same words beside what the model takes now, so the two figures are not
read as a contradiction. The legend, the column headers and the foot's
promise are set in --text-dim, the bar's track in --text-muted so its free
part can be seen, and only the download figure keeps tabular figures.

The consent screen is the download as a table: the chosen row, the runtime,
the coding agent with its installer's command as the row's second line, the
total in the strong weight, then where it goes in one line. The download bar
means the model download alone and is gone once the model is in; the screen
that ends an install shows "Start a session" alone; an error on an installed
model is the headline with a grey dot; an error's first sentence is the
headline; Remove is quiet everywhere but red in its own question. The
no-recommendation reasons are one sentence each, and the untested note is
in Codeman's voice. A refusal the server names is printed from its sentence.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-11-06 23:55:02 +01:00
1 parent 3c4bb91d6f
commit 77d29d4621
9 files changed
+777 -314

No files matched your search

+149 -45
View File
@@ -22315,11 +22315,16 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
row carries the accent on its reading edge and a faint fill.
Theme tokens only, never a black or white alpha (those vanish on the light
skins). The bar's track is `--control-border-hover`: the fill of the app's
inputs (`--bg-input`) is the window's own surface on the dark skins, so the
part of the bar that stays free could not be seen. Nothing here is keyed on
a CLI or a model id. The only motion is the bar's width, and it stops under
prefers-reduced-motion.
skins). The bar's track is `--text-muted`: the part of the bar that stays
FREE is half of what the bar says, so it must be seen against the window
(about 3:1 or better on every skin; the fill of the app's inputs,
`--bg-input`, is the window's own surface on the dark skins, and a border
token is 1.5:1). Nothing here is keyed on a CLI or a model id. The only
motion is the bar's width, and it stops under prefers-reduced-motion.
The window is ONE frame for the whole flow: a fixed height on desktop, the
header on top, the buttons in a foot of their own (`.lm-foot-slot`) and the
body scrolling between them. A click never moves the next button away.
═══════════════════════════════════════════════════════════════ */
/* The welcome button: one more chip, on its own line under the launchers. */
@@ -22337,13 +22342,16 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
flex-shrink: 0;
}
/* The window: App Settings' chrome (`.modal`, `.modal-header`, `.modal-close`)
at a width of its own, the body scrolling under a fixed header. */
/* The window: App Settings' chrome (`.modal`, `.modal-header`, the boxed
close button) at a width of its own. One frame for every screen: the height
is fixed, so the header, the close button and the main button stay where
they are from the chooser to "Start a session". */
.modal-content.local-model-window {
display: flex;
flex-direction: column;
width: min(640px, 94vw);
max-width: min(640px, 94vw);
height: min(600px, 88vh);
max-height: 88vh;
}
@@ -22351,8 +22359,36 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
flex-shrink: 0;
}
/* App Settings' close button: a 30px box, not the bare glyph of a plain modal. */
.local-model-window > .modal-header .modal-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
padding: 0;
border-radius: 9px;
font-size: 1.2rem;
color: var(--text-dim);
background: transparent;
transition:
background 0.15s ease,
color 0.15s ease,
transform 0.1s ease;
}
.local-model-window > .modal-header .modal-close:hover {
background: var(--bg-hover);
color: var(--text);
}
.local-model-window > .modal-header .modal-close:active {
transform: scale(0.94);
}
.local-model-window > .lm-body {
display: flex;
flex: 1;
flex-direction: column;
gap: 1.05rem;
min-height: 0;
@@ -22361,6 +22397,37 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
text-align: start;
}
/* The short screens (progress, paused, a failure, installed, nothing fits)
hold a few lines in a frame sized for the chooser: they sit in the middle of
it, a status in its own room, not a heading with a void under it. */
.local-model-window
> .lm-body:is(
[data-screen='progress'],
[data-screen='paused'],
[data-screen='failed'],
[data-screen='installed'],
[data-screen='none']
) {
justify-content: center;
padding-bottom: 2.2rem;
}
/* The foot of the frame: the buttons of the screen (or the Remove question),
outside the part that scrolls. */
.local-model-window > .lm-foot-slot {
flex-shrink: 0;
padding: 0 1.25rem 1.15rem;
text-align: start;
}
.local-model-window > .lm-foot-slot:empty {
display: none;
}
.lm-foot-slot p {
margin: 0;
}
.lm-body p,
.lm-body h4 {
margin: 0;
@@ -22437,6 +22504,11 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
font-weight: 680;
letter-spacing: -0.012em;
color: var(--text);
}
/* Only the figure that ticks (the download) holds its digits in fixed cells.
In a sentence fixed cells leave a hole around every 1. */
.lm-figure-count {
font-variant-numeric: tabular-nums;
}
@@ -22449,7 +22521,7 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
.lm-bar {
height: 10px;
border-radius: 999px;
background: var(--control-border-hover);
background: var(--text-muted);
overflow: hidden;
}
@@ -22464,9 +22536,9 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
display: flex;
justify-content: space-between;
gap: 1rem;
font-size: 0.68rem;
font-size: 0.7rem;
line-height: 1.4;
color: var(--text-muted);
color: var(--text-dim);
}
.lm-legend > :last-child {
@@ -22507,8 +22579,8 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
.lm-caption {
padding-bottom: 0.3rem;
font-size: 0.68rem;
color: var(--text-muted);
font-size: 0.7rem;
color: var(--text-dim);
}
.lm-caption-label {
@@ -22551,15 +22623,6 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
background: rgba(var(--accent-rgb), 0.075);
}
/* The chosen row of the confirm screen: the same line, nothing to press. */
.lm-model-static {
cursor: default;
}
.lm-model-static .lm-model-name {
grid-column: 1 / span 2;
}
.lm-radio {
box-sizing: border-box;
width: 14px;
@@ -22674,60 +22737,79 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
font-size: 0.74rem;
}
/* ── the confirm screen ───────────────────────────────────────────── */
/* ── the confirm screen: the download as a table ──────────────────── */
/* One row per thing that is fetched: its name in the text colour with what it
is underneath, its size at the right edge, and the total under a rule in the
strong weight. The table is the screen; nothing else on it competes. */
.lm-sizes {
display: flex;
flex-direction: column;
}
.lm-sizes .lm-heading {
margin-bottom: 0.3rem;
margin-bottom: 0.35rem;
font-size: 0.84rem;
font-weight: 650;
letter-spacing: -0.005em;
color: var(--text);
}
.lm-size-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding: 0.28rem 0;
font-size: 0.8rem;
color: var(--text-dim);
gap: 1.2rem;
padding: 0.6rem 0;
border-top: 1px solid var(--border);
}
.lm-size-what {
display: flex;
flex-direction: column;
gap: 0.18rem;
min-width: 0;
}
.lm-size-name {
font-size: 0.86rem;
font-weight: 600;
color: var(--text);
overflow-wrap: anywhere;
}
.lm-size-note {
font-size: 0.74rem;
line-height: 1.45;
color: var(--text-dim);
overflow-wrap: anywhere;
}
.lm-size-gb {
flex-shrink: 0;
font-size: 0.86rem;
font-weight: 560;
color: var(--text);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.lm-size-total {
margin-top: 0.25rem;
padding-top: 0.55rem;
border-top: 1px solid var(--border);
font-weight: 650;
color: var(--text);
padding-top: 0.75rem;
border-top-color: var(--text-muted);
}
.lm-agent,
.lm-where {
display: flex;
flex-direction: column;
gap: 0.35rem;
.lm-size-total .lm-size-name,
.lm-size-total .lm-size-gb {
font-size: 1.06rem;
font-weight: 680;
letter-spacing: -0.012em;
}
/* A literal command and a folder: text to read and to copy, so it is set in
the mono face and selects whole. */
/* A literal command: text to read and to copy, so it is set in the mono face
and selects whole. It sits in its row, under the sentence that names it. */
.lm-command {
display: block;
padding: 0.42rem 0.6rem;
border-radius: 6px;
background: var(--bg-input);
margin-top: 0.15rem;
color: var(--text);
font-family: var(--font-mono);
font-size: 0.72rem;
@@ -22736,6 +22818,21 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
user-select: all;
}
/* Where it goes: one quiet line under the table. */
.lm-where {
font-size: 0.74rem;
line-height: 1.5;
color: var(--text-dim);
overflow-wrap: anywhere;
}
.lm-path {
color: var(--text);
font-family: var(--font-mono);
font-size: 0.72rem;
user-select: all;
}
/* ── progress: the steps ARE a sequence, so they are a list ───────── */
.lm-steps {
display: flex;
@@ -22853,7 +22950,7 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
}
.lm-details {
margin-top: 0.55rem;
margin-top: 0.2rem;
font-size: 0.74rem;
color: var(--text-dim);
}
@@ -22882,6 +22979,13 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
overflow-wrap: anywhere;
}
/* An error: its first sentence as the headline, the rest in the body size. */
.lm-error {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.lm-remove {
display: flex;
flex-direction: column;
@@ -22922,9 +23026,9 @@ html[data-tile-anim="soft"] .tile-grid-ghosts.tile-grid-ghosts--release:not(.til
.lm-foot-note {
min-width: 0;
font-size: 0.72rem;
font-size: 0.74rem;
line-height: 1.45;
color: var(--text-muted);
color: var(--text-dim);
}
.lm-buttons {