Skip to content

Commit a81f878

Browse files
authored
fix(AsideHeader)!: move customBackground in aside container (#339)
1 parent 6412e9d commit a81f878

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/AsideHeader/components/FirstPanel.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ export const FirstPanel = React.forwardRef<HTMLDivElement>((_props, ref) => {
3939
<React.Fragment>
4040
<div className={b('aside', className)} style={{width: size}} data-qa={qa}>
4141
<div className={b('aside-popup-anchor')} ref={asideRef} />
42-
42+
{customBackground && (
43+
<div className={b('aside-custom-background', customBackgroundClassName)}>
44+
{customBackground}
45+
</div>
46+
)}
4347
<div className={b('aside-content', {['with-decoration']: headerDecoration})}>
44-
{customBackground && (
45-
<div className={b('aside-custom-background', customBackgroundClassName)}>
46-
{customBackground}
47-
</div>
48-
)}
4948
<Header />
5049
{visibleMenuItems?.length ? (
5150
<CompositeBar

0 commit comments

Comments
 (0)