Skip to content

Commit 6a5c237

Browse files
committed
Cap the tool panel width on tablets
1 parent 91cbd97 commit 6a5c237

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/editor/src/core/components/tools/RightSidebar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ export default function RightSidebar() {
214214
transition: "opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",
215215
height: "100%",
216216
width: isMobile ? "100%" : expandedWidth,
217+
maxWidth: isMobile ? "44rem" : undefined,
218+
marginInline: isMobile ? "auto" : undefined,
217219
flexShrink: 0,
218220
display: "flex",
219221
flexDirection: "column",

0 commit comments

Comments
 (0)