Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: avoid forced min-width and horizontal clipping in mobile app view (#10023)

Kiran Gadhaveb736d24d866a
diff --git a/frontend/src/components/editor/app-container.tsx b/frontend/src/components/editor/app-container.tsx
index a5a5dac556..0fe0b3833d 100644
--- a/frontend/src/components/editor/app-container.tsx
+++ b/frontend/src/components/editor/app-container.tsx
@@ -48,7 +48,9 @@ export const AppContainer: React.FC<PropsWithChildren<Props>> = ({
"bg-background w-full h-full text-textColor",
"flex flex-col overflow-y-auto",
width === "full" && "config-width-full",
- width === "columns" ? "overflow-x-auto" : "overflow-x-hidden",
+ width === "columns"
+ ? "overflow-x-auto"
+ : "overflow-x-auto sm:overflow-x-hidden",
"print:height-fit",
)}
>
diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx
index 66148e9dda..ef7f80f079 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx
@@ -32,9 +32,9 @@ export const VerticalLayoutWrapper: React.FC<PropsWithChildren<Props>> = ({
// This padding needs to be the same from above to be correctly applied
"pb-24 sm:pb-12",
appConfig.width === "compact" &&
- "max-w-(--content-width) min-w-[400px]",
+ "max-w-(--content-width) sm:min-w-[400px]",
appConfig.width === "medium" &&
- "max-w-(--content-width-medium) min-w-[400px]",
+ "max-w-(--content-width-medium) sm:min-w-[400px]",
appConfig.width === "columns" && "w-fit",
appConfig.width === "full" && "max-w-full",
// Hide the cells for a fake loading effect, to avoid flickering