Skip to content

Commit

Permalink
fix(AsideHeader): add --gn-aside-header-size css var (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunory authored Oct 9, 2023
1 parent e173861 commit 5b9e5a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/AsideHeader/AsideHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ export const AsideHeader = React.forwardRef<HTMLDivElement, AsideHeaderProps>((p
return (
<AsideHeaderContextProvider value={asideHeaderContextValue}>
<AsideHeaderInnerContextProvider value={asideHeaderInnerContextValue}>
<div className={b({compact}, className)}>
<div
className={b({compact}, className)}
style={{
...({'--gn-aside-header-size': `${size}px`} as React.CSSProperties),
}}
>
<div className={b('pane-container')}>
{/* First Panel */}
<FirstPanel ref={ref} />
Expand Down

0 comments on commit 5b9e5a0

Please sign in to comment.