Skip to content

Commit ef83cae

Browse files
committed
style: shrink session item action buttons
1 parent 8399f66 commit ef83cae

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

tests/unit/config-tabs-ui.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ test('trash item styles stay aligned with session card layout and keep mobile us
428428
styles,
429429
/@media \(max-width: 540px\)\s*\{[\s\S]*\.session-item-copy\.session-item-pin svg,\s*[\s\S]*width:\s*16px;/
430430
);
431-
assert.match(styles, /@media \(max-width: 540px\)\s*\{[\s\S]*\.session-item-copy\s*\{[\s\S]*width:\s*44px;[\s\S]*height:\s*44px;[\s\S]*min-width:\s*44px;[\s\S]*min-height:\s*44px;/);
431+
assert.match(styles, /@media \(max-width: 540px\)\s*\{[\s\S]*\.session-item-copy\s*\{[\s\S]*width:\s*36px;[\s\S]*height:\s*36px;[\s\S]*min-width:\s*36px;[\s\S]*min-height:\s*36px;/);
432432
assert.match(styles, /\.codex-config-grid\s*\{/);
433433
assert.match(styles, /\.codex-config-grid\s*\{[\s\S]*grid-template-columns:\s*repeat\(auto-fit,\s*minmax\(min\(240px,\s*100%\),\s*1fr\)\);/);
434434
assert.match(styles, /\.codex-config-field\s*\{/);

web-ui/styles/responsive.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ textarea:focus-visible {
193193

194194
.btn-icon,
195195
.session-item-copy {
196-
min-width: 44px;
196+
min-width: 36px;
197197
}
198198

199199
.session-item {
@@ -214,10 +214,10 @@ textarea:focus-visible {
214214
}
215215

216216
.session-item-copy {
217-
width: 44px;
218-
height: 44px;
219-
min-width: 44px;
220-
min-height: 44px;
217+
width: 36px;
218+
height: 36px;
219+
min-width: 36px;
220+
min-height: 36px;
221221
border-radius: 6px;
222222
padding: 2px;
223223
display: inline-flex;
@@ -227,8 +227,8 @@ textarea:focus-visible {
227227
}
228228

229229
.session-item-copy svg {
230-
width: 12px;
231-
height: 12px;
230+
width: 10px;
231+
height: 10px;
232232
}
233233

234234
.session-item-title {

web-ui/styles/sessions-list.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@
314314
border: 1px solid rgba(70, 86, 110, 0.35);
315315
background: rgba(70, 86, 110, 0.08);
316316
color: var(--color-text-secondary);
317-
width: 28px;
318-
height: 28px;
317+
width: 22px;
318+
height: 22px;
319319
border-radius: 8px;
320320
display: inline-flex;
321321
align-items: center;
@@ -339,8 +339,8 @@
339339
}
340340

341341
.session-item-copy svg {
342-
width: 16px;
343-
height: 16px;
342+
width: 10px;
343+
height: 10px;
344344
}
345345

346346
.session-item-pin {
@@ -349,6 +349,8 @@
349349

350350
.session-item-pin .pin-icon,
351351
.session-item-pin svg {
352+
width: 9px;
353+
height: 9px;
352354
color: rgba(208, 88, 58, 0.78);
353355
}
354356

0 commit comments

Comments
 (0)