From f84970297618ca6681ff2ec5f008e12fbc8e93db Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 23 Sep 2026 00:40:13 +0200 Subject: [PATCH] fix(v2): drop the selection check, and give the stage corners one job each The brand border, the tinted wash and the brand-coloured name already say which row or tile is picked, so the check icon was a fourth voice saying it again. Removing it from the rows, the tiles and the list layout also frees the corner the heart was stepping around. With that gone the state preview's heart moves to the top left, leaving the clear button alone on the right, and both hand-tuned dodge offsets disappear with it. A state's name now wraps instead of truncating: it sits under a full-width stage with room for it, unlike a save's in a dense row. The play rows also lose the trailing grid track that only ever carried the management buttons. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK --- .../src/v2/components/Player/AssetPreview.vue | 12 +++-- .../src/v2/components/shared/AssetList.vue | 28 ++-------- .../src/v2/components/shared/AssetStrip.vue | 51 +------------------ 3 files changed, 11 insertions(+), 80 deletions(-) diff --git a/frontend/src/v2/components/Player/AssetPreview.vue b/frontend/src/v2/components/Player/AssetPreview.vue index 0d70330d6..619b5dbd9 100644 --- a/frontend/src/v2/components/Player/AssetPreview.vue +++ b/frontend/src/v2/components/Player/AssetPreview.vue @@ -120,7 +120,6 @@ const emptyText = computed(() => @@ -474,6 +473,12 @@ const emptyText = computed(() => overflow: hidden; text-overflow: ellipsis; } +/* A state's name has the stage's full width under it, so it wraps instead. */ +.r-asset-preview:not(.r-asset-preview--save) .r-asset-preview__name { + white-space: normal; + overflow: visible; + overflow-wrap: anywhere; +} .r-asset-preview__chips { display: flex; @@ -495,12 +500,9 @@ const emptyText = computed(() => .r-asset-preview__stage-fav { position: absolute; top: 12px; - right: 12px; + left: 12px; filter: drop-shadow(0 1px 4px color-mix(in srgb, black 75%, transparent)); } -.r-asset-preview__stage-fav--clearable { - right: 46px; -} /* The size is the least telling fact here, so it sits a step below the labels and the slot rather than above them. */ diff --git a/frontend/src/v2/components/shared/AssetList.vue b/frontend/src/v2/components/shared/AssetList.vue index 4a37ae815..1d02ad6a0 100644 --- a/frontend/src/v2/components/shared/AssetList.vue +++ b/frontend/src/v2/components/shared/AssetList.vue @@ -287,18 +287,7 @@ const fadeIndex = computed(() => :align="xs ? 'start' : 'end'" /> - - + @@ -413,7 +402,7 @@ const fadeIndex = computed(() => background: var(--r-color-bg-elevated); width: 100%; display: grid; - grid-template-columns: auto minmax(0, 1fr) auto auto; + grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; @@ -441,6 +430,7 @@ const fadeIndex = computed(() => /* Manage mode: rows are static info containers, not selectable buttons. No pointer cursor, no hover-lift — only the action buttons react. */ .r-asset-list__row--static { + grid-template-columns: auto minmax(0, 1fr) auto auto; cursor: default; } .r-asset-list__row--static:hover { @@ -510,17 +500,6 @@ const fadeIndex = computed(() => display: contents; } -.r-asset-list__check { - display: grid; - place-items: center; - width: 22px; - height: 22px; - color: var(--r-color-fg-faint); -} -.r-asset-list__item--active .r-asset-list__check { - color: var(--r-color-brand-primary); -} - /* Manage mode: trailing action buttons (download / delete / toggle). */ .r-asset-list__actions { display: inline-flex; @@ -573,7 +552,6 @@ html[data-bp~="xs"] .r-asset-list__name { html[data-bp~="xs"] .r-asset-list__time { grid-area: time; } -html[data-bp~="xs"] .r-asset-list__check, html[data-bp~="xs"] .r-asset-list__actions { grid-area: actions; } diff --git a/frontend/src/v2/components/shared/AssetStrip.vue b/frontend/src/v2/components/shared/AssetStrip.vue index ec707d345..31ca6b2c6 100644 --- a/frontend/src/v2/components/shared/AssetStrip.vue +++ b/frontend/src/v2/components/shared/AssetStrip.vue @@ -191,20 +191,7 @@ const fadeIndex = computed(() => :aria-disabled="reasonOf(asset) ? true : undefined" @click="selectable && !reasonOf(asset) && $emit('select', asset)" > - - -
+
size="28" />
- @@ -421,12 +397,6 @@ const fadeIndex = computed(() => .r-asset-strip--list .r-asset-strip__tile--active:hover { background: color-mix(in srgb, var(--r-color-brand-primary) 14%, transparent); } -.r-asset-strip--list .r-asset-strip__mark { - flex: 0 0 14px; - display: grid; - place-items: center; - color: var(--r-color-brand-primary); -} .r-asset-strip--list .r-asset-strip__meta { flex: 1; min-width: 0; @@ -548,25 +518,6 @@ const fadeIndex = computed(() => right: 6px; filter: drop-shadow(0 1px 3px color-mix(in srgb, black 75%, transparent)); } -/* Steps aside when the selection check owns the corner. */ -.r-asset-strip__fav--checked { - right: 30px; -} - -.r-asset-strip__check { - position: absolute; - top: 4px; - right: 4px; - width: 22px; - height: 22px; - display: grid; - place-items: center; - background: var(--r-color-brand-primary); - color: white; - border-radius: 50%; - box-shadow: 0 2px 6px color-mix(in srgb, black 35%, transparent); -} - .r-asset-strip__body { display: flex; flex-direction: column;