feat(model-picker): add remove-from-recent button to Recent section rows (#2894)

* feat(model-picker): add remove-from-recent button to Recent section rows

* fix(model-picker): restore original browse-mode section logic, keep remove button only
This commit is contained in:
Zen0-99
2026-06-07 16:45:59 +01:00
committed by GitHub
parent 8cfc5bb28f
commit 2a422c00ec
2 changed files with 56 additions and 4 deletions
+28
View File
@@ -2940,6 +2940,34 @@ body.bg-pattern-sparkles {
45% { text-shadow: 0 0 10px color-mix(in srgb, var(--accent, var(--red)) 60%, transparent); }
100% { text-shadow: 0 0 0 color-mix(in srgb, var(--accent, var(--red)) 0%, transparent); }
}
/* Inline remove-from-recent button — only shown on Recent rows. */
.model-picker-list .mp-remove-dot {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
margin: -4px -4px -4px 2px;
padding: 0;
border: none;
background: transparent;
cursor: pointer;
color: color-mix(in srgb, var(--fg) 28%, transparent);
font-family: inherit;
font-size: 15px;
line-height: 1;
transition: color 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
-webkit-tap-highlight-color: transparent;
}
.model-picker-list .mp-remove-dot:hover {
color: var(--red, #ff5555);
transform: scale(1.1);
}
.model-picker-list .mp-remove-dot:focus-visible {
outline: none;
color: var(--red, #ff5555);
}
/* First-run hint when a large catalog has no Recent/Favorites yet. */
.model-picker-list .mp-empty-hint {
flex-direction: column;