Skip to content

Commit

Permalink
Only add right padding if scrollbar exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni K committed Jan 22, 2025
1 parent 912e7d3 commit be67965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const Sidebar = ({ children, scrollbar, ...rest }: SidebarProps) => (
<div
data-h2-position="base(sticky)"
data-h2-overflow="base(auto)"
data-h2-padding-right="l-tablet(x.5)"
{...(scrollbar
? {
"data-h2-location": "base(0, auto, auto, auto)",
"data-h2-height": "l-tablet(100vh)",
"data-h2-padding-right": "l-tablet(x.5)",
}
: {
"data-h2-location": "base(x5, auto, auto, auto)",
Expand Down

0 comments on commit be67965

Please sign in to comment.