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 reusable cell link only clickable on text, not entire block (#5851)
Trevor Manz9c08999248b2
diff --git a/frontend/src/components/editor/Cell.tsx b/frontend/src/components/editor/Cell.tsxindex 2769ef1103..029f585cb6 100644--- a/frontend/src/components/editor/Cell.tsx+++ b/frontend/src/components/editor/Cell.tsx@@ -726,16 +726,16 @@ const EditableCellComponent = ({</div>{cellOutput === "below" && outputArea}{serialization && (- <a- href="https://links.marimo.app/reusable-definitions"- target="_blank"- className="hover:underline py-1 px-2 flex items-center justify-end gap-2 last:rounded-b"- rel="noopener"- >+ <div className="py-1 px-2 flex items-center justify-end gap-2 last:rounded-b">{isToplevel && (- <span className="text-muted-foreground text-xs font-bold">+ <a+ href="https://links.marimo.app/reusable-definitions"+ target="_blank"+ className="hover:underline text-muted-foreground text-xs font-bold"+ rel="noopener"+ >reusable- </span>+ </a>)}<Tooltipcontent={@@ -755,21 +755,33 @@ const EditableCellComponent = ({</span>}>- {(isToplevel && (- <SquareFunctionIcon- size={16}- strokeWidth={1.5}- className="rounded-lg text-muted-foreground"- />- )) || (- <HelpCircleIcon- size={16}- strokeWidth={1.5}- className="rounded-lg text-muted-foreground"- />+ {isToplevel ? (+ <a+ href="https://links.marimo.app/reusable-definitions"+ target="_blank"+ rel="noopener"+ >+ <SquareFunctionIcon+ size={16}+ strokeWidth={1.5}+ className="rounded-lg text-muted-foreground"+ />+ </a>+ ) : (+ <a+ href="https://links.marimo.app/reusable-definitions"+ target="_blank"+ rel="noopener"+ >+ <HelpCircleIcon+ size={16}+ strokeWidth={1.5}+ className="rounded-lg text-muted-foreground"+ />+ </a>)}</Tooltip>- </a>+ </div>)}<ConsoleOutputconsoleOutputs={consoleOutputs}