Split settings into tabs; exposure and focus on the home screen
Some checks failed
CI / build-and-deploy (push) Has been cancelled

Home screen gains shutter, aperture and ISO as dropdowns plus a focus stepper
(three nudge sizes each way, and AF) where the body drives focus over PTP.
Those three drop out of the read-only strip rather than being shown twice.

Everything is built from what the camera actually reports, so a body without
one of these controls doesn't get it rather than showing something that
silently fails. The 450D marks shutter and aperture readonly unless the mode
dial is somewhere they apply, so the dropdowns disable themselves and say why.
Focus uses the EOS manualfocusdrive steps and autofocusdrive, and warns when
live view is off, which Canon bodies generally require for focus commands.

The settings drawer is now tabbed: app settings stay on the first tab, and
each config section the camera reports gets its own. Empty sections are
dropped, and a selected section that disappears falls back to the first tab.
Tabs wrap rather than scroll - a scrolled-off tab is an undiscoverable one.

Reverts the automatic camera search added in the previous commit, restoring
the Select camera button. Auto-connect could park with no way to reach the
device chooser: WebUSB permissions are per-origin, so a grant on localhost
doesn't carry to the deployed copy, and a camera that's asleep or held by
another app never arrives.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QK7PKpRVoy69Fpa32R8abb
This commit is contained in:
Jon
2026-08-02 19:36:06 +01:00
parent baaa0b5472
commit c3cf5ddfbf
7 changed files with 473 additions and 123 deletions

View File

@@ -285,6 +285,11 @@
gap: 10px;
}
/* Shutter / aperture / ISO belong on one line, so allow narrower columns. */
.field-grid.tight {
grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}
.field {
display: flex;
flex-direction: column;
@@ -353,6 +358,67 @@
color: var(--muted);
}
.card-title {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
margin-bottom: 10px;
display: flex;
align-items: baseline;
gap: 8px;
}
.card-title-note {
text-transform: none;
letter-spacing: 0;
font-size: 12px;
opacity: 0.8;
}
.mini-spinner {
display: inline-block;
width: 9px;
height: 9px;
margin-left: 6px;
border: 1.5px solid var(--line);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
vertical-align: middle;
}
/* Focus stepper */
.focus-row {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.focus-steps {
display: flex;
align-items: center;
gap: 4px;
flex: 1;
}
.focus-end {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
}
.focus-step {
flex: 1;
padding: 7px 4px;
font-size: 11px;
line-height: 1;
letter-spacing: -1px;
}
.plan {
margin: 12px 0 0;
font-size: 13px;
@@ -598,6 +664,39 @@
margin-bottom: 8px;
}
/* Wraps rather than scrolls: a scrolled-off tab is an undiscoverable
one, and two short rows cost less than a hidden overflow. */
.tab-bar {
display: flex;
flex-wrap: wrap;
gap: 2px 4px;
padding: 4px 8px 0;
border-bottom: 1px solid var(--line);
flex: none;
}
.tab {
flex: none;
border: none;
border-bottom: 2px solid transparent;
border-radius: 0;
background: none;
color: var(--muted);
font-size: 13px;
padding: 9px 10px;
white-space: nowrap;
}
.tab:hover:not(.active) {
color: var(--text);
border-color: var(--line);
}
.tab.active {
color: var(--text);
border-bottom-color: var(--accent);
}
.drawer-body {
flex: 1;
overflow-y: auto;
@@ -710,23 +809,6 @@
color: var(--muted);
}
.searching {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
color: var(--muted);
}
.spinner {
width: 15px;
height: 15px;
border: 2px solid var(--line);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
@@ -734,7 +816,7 @@
}
@media (prefers-reduced-motion: reduce) {
.spinner {
.mini-spinner {
animation-duration: 2.4s;
}
}