Skip to content

Commit

Permalink
fix(publish): CSS sidebar is off on smaller screens like iPad (#2305)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleweek committed Jan 28, 2022
1 parent 50bc1ee commit d46c521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs-template/components/DendronLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function DendronLayout(
className="site-layout-sidebar"
style={{
flex: "0 0 auto",
width: `calc((100% - ${LAYOUT.BREAKPOINTS.lg}) / 2 + ${
width: `calc(max((100% - ${LAYOUT.BREAKPOINTS.lg}) / 2, 0px) + ${
// eslint-disable-next-line no-nested-ternary
isResponsive
? isCollapsed
Expand Down

0 comments on commit d46c521

Please sign in to comment.