Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-aiтаCursor 57cf4c9967 fix(agents): align session composer and asset pills with Islands style
Co-authored-by: Cursor <[email protected]>
2026-11-25 17:44:41 +08:00
8 змінених файлів з 65 додано та 37 видалено

No files matched your search

+17 -10
Переглянути файл
@@ -1,17 +1,20 @@
/* A framed text area (IDEA text field frame), with the pickers in its bottom row. */
/* A framed text area (IDEA Islands surface), with compact pickers in its bottom row. */
.composer {
container: agent-composer / inline-size;
min-width: 0;
position: relative;
display: flex;
flex-direction: column;
border-radius: var(--radius-control);
background: var(--bg-field, var(--bg-button));
box-shadow: inset 0 0 0 1px var(--border-button);
border-radius: var(--radius-toolbar-button);
background: var(--bg-elev);
box-shadow: inset 0 0 0 1px var(--border-popup);
cursor: text;
transition: box-shadow var(--dur-fast) var(--ease);
transition:
background var(--dur-fast) var(--ease),
box-shadow var(--dur-fast) var(--ease);
}
.composer:focus-within {
background: var(--bg-field, var(--bg-button));
box-shadow:
inset 0 0 0 1px var(--focus-ring),
0 0 0 1px var(--focus-ring);
@@ -47,8 +50,8 @@
must land in the editable text, or they focus the bare scroller and no caret appears.
A host sets --composer-min-height rather than overriding the rule, so stylesheet order can't undo it. */
.field :global(.cm-content) {
min-height: var(--composer-min-height, 44px);
padding: var(--space-2) var(--space-2) var(--space-0-5);
min-height: var(--composer-min-height, 38px);
padding: 9px 12px 4px;
caret-color: var(--fg-strong);
white-space: pre-wrap;
overflow-wrap: anywhere;
@@ -100,6 +103,7 @@
min-width: 0;
overflow: hidden;
gap: var(--space-0-5);
font-size: var(--fs-small);
}
.toolbar > button {
flex: 0 1 auto;
@@ -197,14 +201,17 @@
.chip {
display: inline-flex;
align-items: center;
gap: var(--space-1-5);
gap: var(--space-1);
height: var(--h-control);
min-width: 0;
padding: 0 4px 0 6px;
border-radius: var(--radius-control);
border-radius: var(--radius-toolbar-button);
color: var(--fg-secondary);
font-size: var(--fs-small);
white-space: nowrap;
transition: background var(--dur-fast) var(--ease);
transition:
background var(--dur-fast) var(--ease),
color var(--dur-fast) var(--ease);
}
.chip.chipLoading,
.chip.chipLoading:hover {
+4 -4
Переглянути файл
@@ -517,7 +517,7 @@ function ModelPicker({
onClick={() => toggle("models")}
>
<span className={styles.chipValue}>{modelName}</span>
<Icon name="chevron-down" size={14} className={styles.chipChevron} />
<Icon name="chevron-down" size={12} className={styles.chipChevron} />
</button>
{!unavailable && modelRefresh?.loadingSettings ? (
<LoadingSettingsChip />
@@ -538,7 +538,7 @@ function ModelPicker({
onClick={() => toggle("settings")}
>
<span className={styles.chipValue}>{summary}</span>
<Icon name="chevron-down" size={14} className={styles.chipChevron} />
<Icon name="chevron-down" size={12} className={styles.chipChevron} />
</button>
)
)}
@@ -753,14 +753,14 @@ function ModePicker({
title={summary}
onClick={() => setOpen((v) => !v)}
>
<Icon name={on ? "unlock" : modeIcon(current?.value ?? "")} size={14} />
<Icon name={on ? "unlock" : modeIcon(current?.value ?? "")} size={13} />
<span className={styles.chipValue}>{current?.name ?? tx("Default")}</span>
{on && (
<span className={clsx(styles.chipDetail, compactDetail && styles.compactDetail)} data-chip-detail="">
{tx(toggle.chipLabel)}
</span>
)}
<Icon name="chevron-down" size={14} className={styles.chipChevron} />
<Icon name="chevron-down" size={12} className={styles.chipChevron} />
</button>
<Popup
open={open}
-1
Переглянути файл
@@ -257,7 +257,6 @@
background: none;
color: var(--link);
font-size: var(--fs-small);
cursor: pointer;
}
.codeMore:hover {
background: var(--bg-hover);
+2 -2
Переглянути файл
@@ -1088,12 +1088,12 @@
flex: none;
display: flex;
flex-direction: column;
gap: var(--space-1-5);
gap: var(--space-1);
align-self: center;
width: 100%;
max-width: calc(var(--session-content-width) + var(--space-3) * 2);
box-sizing: border-box;
padding: var(--space-2) var(--space-3) var(--space-4);
padding: var(--space-1-5) var(--space-3) var(--space-3);
}
.background {
+32 -16
Переглянути файл
@@ -1,24 +1,25 @@
/* Session Pull Requests, Issues, References, and Artifacts pills above the composer. */
/* Session Pull Requests, Issues, References, and Artifacts pills above the composer.
Flat like Chip / statusChip: no frame at rest, toolbar hover when interactive. */
.bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1-5);
gap: var(--space-0-5);
min-width: 0;
padding: 0 2px;
padding: 0;
}
.pill {
display: inline-flex;
align-items: center;
gap: var(--space-1-5);
height: 24px;
gap: var(--space-1);
height: 22px;
max-width: 100%;
min-width: 0;
padding: 0 8px;
border: 1px solid var(--border-popup);
border-radius: var(--radius-control);
background: var(--bg-elev);
padding: 0 4px 0 6px;
border: 0;
border-radius: var(--radius-toolbar-button);
background: transparent;
color: var(--fg-secondary);
font: inherit;
font-size: var(--fs-small);
@@ -26,17 +27,30 @@
white-space: nowrap;
transition:
background var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease),
color var(--dur-fast) var(--ease);
}
.pill:hover,
.pill[aria-expanded="true"] {
background: var(--bg-hover);
border-color: var(--border-strong);
background: var(--bg-toolbar-hover);
color: var(--fg-strong);
}
.pill:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
.pillIcon {
flex: none;
color: var(--fg-muted);
}
.pill:hover .pillIcon,
.pill[aria-expanded="true"] .pillIcon {
color: inherit;
}
.pillLabel {
min-width: 0;
overflow: hidden;
@@ -63,7 +77,7 @@
}
.sectionHeader {
padding: 4px 12px;
padding: 4px 14px;
color: var(--fg-muted);
font-size: var(--fs-small);
font-weight: 600;
@@ -75,13 +89,15 @@
display: flex;
align-items: center;
gap: var(--space-1);
min-height: 28px;
padding: 1px 6px 1px 10px;
min-height: 26px;
margin: 0 6px;
padding: 1px 4px 1px 8px;
border-radius: var(--radius-selection, 5px);
}
.row:hover,
.row:focus-within {
background: var(--bg-hover);
background: var(--bg-tree-hover, var(--bg-hover));
}
.rowMain {
+3 -3
Переглянути файл
@@ -514,7 +514,7 @@ export function SessionAssets({ task, entries, head, onFocusComposer }: SessionA
>
<Icon name={issueCount === 1 ? issueIcon(assets.createdIssues[0]!.state) : "issue-open"} size={13} />
<span className={styles.pillLabel}>{issuePillLabel}</span>
{issueCount > 1 && <Icon name="chevron-down" size={11} className={styles.chevron} />}
<Icon name="chevron-down" size={11} className={styles.chevron} />
</button>
<AssetPopup
open={activeCategory === "issues"}
@@ -538,7 +538,7 @@ export function SessionAssets({ task, entries, head, onFocusComposer }: SessionA
aria-expanded={activeCategory === "references"}
onClick={() => toggle("references")}
>
<Icon name="toolwindow-bookmarks" size={13} />
<Icon name="toolwindow-bookmarks" size={13} className={styles.pillIcon} />
<span className={styles.pillLabel}>{refPillLabel}</span>
<Icon name="chevron-down" size={11} className={styles.chevron} />
</button>
@@ -564,7 +564,7 @@ export function SessionAssets({ task, entries, head, onFocusComposer }: SessionA
aria-expanded={activeCategory === "artifacts"}
onClick={() => toggle("artifacts")}
>
<Icon name="artifact" size={13} />
<Icon name="artifact" size={13} className={styles.pillIcon} />
<span className={styles.pillLabel}>{artifactPillLabel}</span>
<Icon name="chevron-down" size={11} className={styles.chevron} />
</button>
-1
Переглянути файл
@@ -72,7 +72,6 @@
color: var(--link);
font: inherit;
font-size: var(--fs-small);
cursor: pointer;
}
.resetBtn:hover {
+7
Переглянути файл
@@ -1,4 +1,11 @@
.submit {
--button-radius: var(--radius-toolbar-button);
width: var(--h-control);
padding: 0;
}
.submit:disabled {
background: var(--bg-toolbar-hover);
color: var(--fg-faint);
box-shadow: none;
}