refactor(ui): simplify composer settings chip and animate chevron

Condense the settings-chip summary to quality, ratio, and image count
(dropping resolution and pixel size), wrap the label in an ellipsized
span, and swap the up/down chevron for a single rotating ChevronDown
across the canvas agent and image generator composers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-10 22:35:08 +08:00
parent 59f2b02458
commit 0968f10f86
4 changed files with 50 additions and 13 deletions
@@ -242,11 +242,31 @@
.composer-settings-chip {
max-width: 150px;
padding: 0 8px;
gap: 2px;
padding: 0 4px 0 12px;
overflow: hidden;
background: transparent;
white-space: nowrap;
}
.composer-settings-chip span {
overflow: hidden;
font-size: 13px;
line-height: 20px;
text-overflow: ellipsis;
}
.composer-settings-chip svg {
width: 18px;
height: 18px;
flex: 0 0 auto;
transition: transform 150ms ease;
}
.composer-settings-chip svg.open {
transform: rotate(180deg);
}
.composer-icon-button,
.composer-model-button {
width: 32px;