Skip to content

Commit 13028a8

Browse files
fix(app): keep the split button only as wide as its value
The frame was stretching in a column layout, so the chevron sat away from the end of the value. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent dad9890 commit 13028a8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/app/src/components/SplitValueButton/SplitValueButton.module.scss‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// The label sits in a filled addon so it reads as the frame's name rather than
22
// something to press; only the value side is the button.
33
.control {
4-
display: flex;
4+
display: inline-flex;
55
align-items: center;
6+
align-self: flex-start;
67
flex-shrink: 0;
8+
width: fit-content;
9+
max-width: 100%;
710
overflow: hidden;
811
background: var(--color-bg-surface);
912
border: 1px solid var(--color-border);
@@ -23,6 +26,7 @@
2326
.target {
2427
display: flex;
2528
align-items: center;
29+
flex: none;
2630
gap: 6px;
2731
height: 28px;
2832
padding-inline: 8px;
@@ -35,6 +39,7 @@
3539

3640
// Long expressions truncate rather than pushing the row's other controls off.
3741
.value {
42+
flex: none;
3843
overflow: hidden;
3944
max-width: 220px;
4045
text-overflow: ellipsis;

0 commit comments

Comments
 (0)