Skip to content

Commit 8f71a2c

Browse files
committed
Adjust expand button offset
1 parent 913c310 commit 8f71a2c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

packages/compass-editor/src/actions-container.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ const actionsContainerStyle = css({
2424
pointerEvents: 'none',
2525
});
2626

27+
const expandContainerStyle = css({
28+
position: 'relative',
29+
top: -spacing[100],
30+
left: -spacing[100],
31+
});
32+
2733
const actionsGroupItemSeparator = css({
2834
flex: '1 0 auto',
2935
pointerEvents: 'none',
@@ -47,12 +53,14 @@ export const ActionsContainer = ({
4753
)}
4854
>
4955
{onExpand && (
50-
<ActionButton
51-
label={expanded ? 'Collapse all' : 'Expand all'}
52-
icon={expanded ? 'CaretDown' : 'CaretRight'}
53-
onClick={onExpand}
54-
compact
55-
/>
56+
<div className={expandContainerStyle}>
57+
<ActionButton
58+
label={expanded ? 'Collapse all' : 'Expand all'}
59+
icon={expanded ? 'CaretDown' : 'CaretRight'}
60+
onClick={onExpand}
61+
compact
62+
/>
63+
</div>
5664
)}
5765
<span className={actionsGroupItemSeparator}></span>
5866
{copyable && (

0 commit comments

Comments
 (0)