Skip to content

Commit 293a745

Browse files
authored
fix: Apply toolbar border radius only when an AI panel is present (#3823)
1 parent 4ff58c7 commit 293a745

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/app-layout/visual-refresh-toolbar/toolbar/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,14 @@ export function AppLayoutToolbarImplementation({
138138
return (
139139
<ToolbarSlot
140140
ref={ref}
141-
className={clsx(styles['universal-toolbar'], testutilStyles.toolbar, {
142-
[testutilStyles['mobile-bar']]: isMobile,
143-
})}
141+
className={clsx(
142+
styles['universal-toolbar'],
143+
aiDrawer?.trigger && styles['with-ai-drawer'],
144+
testutilStyles.toolbar,
145+
{
146+
[testutilStyles['mobile-bar']]: isMobile,
147+
}
148+
)}
144149
style={{
145150
insetBlockStart: verticalOffsets.toolbar,
146151
}}

src/app-layout/visual-refresh-toolbar/toolbar/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $toolbar-height: 42px;
2222
transition-property: inset-block-start, opacity;
2323
}
2424

25-
&:not(:has(.universal-toolbar-ai-custom)) {
25+
&.with-ai-drawer:not(:has(.universal-toolbar-ai-custom)) {
2626
&:before,
2727
&:after {
2828
content: '';

0 commit comments

Comments
 (0)