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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK
This commit is contained in:
zurdiandClaude Opus 5 committed 2026-09-23 00:40:13 +02:00
1 parent 0bfe5c1d16
commit f849702976
3 files changed
+11 -80

No files matched your search

@@ -120,7 +120,6 @@ const emptyText = computed(() =>
<AssetFavoriteMark
v-if="asset"
class="r-asset-preview__stage-fav"
:class="{ 'r-asset-preview__stage-fav--clearable': clearable }"
:favorite="asset.is_favorite"
:size="16"
/>
@@ -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. */
@@ -287,18 +287,7 @@ const fadeIndex = computed(() =>
:align="xs ? 'start' : 'end'"
/>
<span
v-if="selectable"
class="r-asset-list__check"
aria-hidden="true"
>
<RIcon
v-if="asset.id === selectedId"
icon="mdi-check-circle"
size="18"
/>
</span>
<span v-else class="r-asset-list__actions">
<span v-if="!selectable" class="r-asset-list__actions">
<slot name="actions" :asset="asset" />
</span>
@@ -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;
}
@@ -191,20 +191,7 @@ const fadeIndex = computed(() =>
:aria-disabled="reasonOf(asset) ? true : undefined"
@click="selectable && !reasonOf(asset) && $emit('select', asset)"
>
<!-- List rows trade the screenshot for density, so the selection
badge moves out of the thumbnail and leads the row instead. -->
<span
v-if="layout === 'list'"
class="r-asset-strip__mark"
aria-hidden="true"
>
<RIcon
v-if="selectable && asset.id === selectedId"
icon="mdi-check-circle"
size="14"
/>
</span>
<div v-else class="r-asset-strip__thumb">
<div v-if="layout !== 'list'" class="r-asset-strip__thumb">
<div
v-if="type === 'state' && screenshotOf(asset)"
class="r-asset-strip__thumb-img"
@@ -218,19 +205,8 @@ const fadeIndex = computed(() =>
size="28"
/>
</div>
<span
v-if="selectable && asset.id === selectedId"
class="r-asset-strip__check"
aria-hidden="true"
>
<RIcon icon="mdi-check" size="14" />
</span>
<AssetFavoriteMark
class="r-asset-strip__fav"
:class="{
'r-asset-strip__fav--checked':
selectable && asset.id === selectedId,
}"
:favorite="selectable && asset.is_favorite"
:size="14"
/>
@@ -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;