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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Make wide mode wider (#231)
Akshay Agrawalfdda0e027b10
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex 84c25aa9f0..c2872ba0a4 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -360,6 +360,7 @@ export const App: React.FC<AppProps> = ({ userConfig, appConfig }) => {(cell) => cell.edited || cell.interrupted)}undoAvailable={cells.history.length > 0}+ appWidth={appConfig.width}/>)}</>diff --git a/frontend/src/editor/Controls.tsx b/frontend/src/editor/Controls.tsxindex 58a9fa0f7a..0b4b17d04c 100644--- a/frontend/src/editor/Controls.tsx+++ b/frontend/src/editor/Controls.tsx@@ -8,6 +8,7 @@ import {SquareIcon,} from "lucide-react";+import { cn } from "@/lib/utils";import { Button } from "@/editor/inputs/Inputs";import { KeyboardShortcuts } from "editor/KeyboardShortcuts";import { ShutdownButton } from "editor/ShutdownButton";@@ -21,6 +22,7 @@ import { useState, useEffect } from "react";import { LayoutSelect } from "./renderers/layout-select";import { NotebookMenuDropdown } from "@/editor/notebook-menu-dropdown";import { FindReplace } from "@/components/find-replace/find-replace";+import { AppConfig } from "@/core/config/config";interface ControlsProps {filename: string | null;@@ -36,6 +38,7 @@ interface ControlsProps {running: boolean;needsRun: boolean;undoAvailable: boolean;+ appWidth: AppConfig["width"];}export const Controls = ({@@ -52,6 +55,7 @@ export const Controls = ({running,needsRun,undoAvailable,+ appWidth,}: ControlsProps): JSX.Element => {const { undoDeleteCell } = useCellActions();@@ -90,7 +94,12 @@ export const Controls = ({</div>)}- <div className={bottomLeftControls}>+ <div+ className={cn(+ bottomLeftControls,+ appWidth === "normal" && "xl:flex-row"+ )}+ >{closed ? (<RecoveryButtonfilename={filename}@@ -212,4 +221,4 @@ const bottomRightControls ="absolute bottom-5 right-5 flex items-center space-x-3 no-print pointer-events-auto z-30";const bottomLeftControls =- "absolute bottom-5 left-4 m-0 flex flex-col-reverse xl:flex-row gap-2 items-center no-print pointer-events-auto z-30";+ "absolute bottom-5 left-4 m-0 flex flex-col-reverse gap-2 items-center no-print pointer-events-auto z-30";diff --git a/frontend/src/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx b/frontend/src/editor/renderers/vertical-layout/vertical-layout-wrapper.tsxindex 6d6199ed6f..460594ad47 100644--- a/frontend/src/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx+++ b/frontend/src/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx@@ -14,7 +14,7 @@ export const VerticalLayoutWrapper: React.FC<PropsWithChildren<Props>> = ({children,}) => {return (- <div className="px-32 xl:px-60">+ <div className="px-32"><divclassName={cn("m-auto pb-12",