Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Cap the tool panel width on tablets (#7915)

Anthony Stirling9be123237c8e
diff --git a/frontend/editor/src/core/components/tools/RightSidebar.tsx b/frontend/editor/src/core/components/tools/RightSidebar.tsx
index 031ecd8e20..a4bc4f109d 100644
--- a/frontend/editor/src/core/components/tools/RightSidebar.tsx
+++ b/frontend/editor/src/core/components/tools/RightSidebar.tsx
@@ -214,6 +214,8 @@ export default function RightSidebar() {
transition: "opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",
height: "100%",
width: isMobile ? "100%" : expandedWidth,
+ maxWidth: isMobile ? "44rem" : undefined,
+ marginInline: isMobile ? "auto" : undefined,
flexShrink: 0,
display: "flex",
flexDirection: "column",