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: update panel focus helper text (#4998)

Myles Scolnick04c6f439a26c
diff --git a/frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx b/frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx
index cf098092ff..a103125bf1 100644
--- a/frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx
+++ b/frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx
@@ -40,7 +40,7 @@ export const ContextAwarePanel: React.FC = () => {
const renderModeToggle = () => {
return (
- <div className="flex flex-row items-center gap-2">
+ <div className="flex flex-row items-center gap-3">
<Tooltip content={isPinned ? "Unpin panel" : "Pin panel"}>
<Toggle
size="xs"
@@ -55,7 +55,27 @@ export const ContextAwarePanel: React.FC = () => {
)}
</Toggle>
</Tooltip>
- <Tooltip content={isCellAware ? "Follow focused cell" : "Fixed"}>
+ <Tooltip
+ content={
+ isCellAware ? (
+ <div className="flex flex-col gap-1">
+ <span>Follow focused table</span>
+ <span className="text-xs text-muted-foreground w-64">
+ The panel updates as cells that output tables are focused.
+ Click to fix to the current cell.
+ </span>
+ </div>
+ ) : (
+ <div className="flex flex-col gap-1">
+ <span>Focus on current table</span>
+ <span className="text-xs text-muted-foreground w-64">
+ The panel is focused on the current table. Click to update
+ based on which cell is focused.
+ </span>
+ </div>
+ )
+ }
+ >
<Toggle
size="xs"
onPressedChange={() => setIsCellAware(!isCellAware)}
diff --git a/frontend/src/css/katex.min.css b/frontend/src/css/katex.min.css
index bdabba4e1b..5243249c30 100644
--- a/frontend/src/css/katex.min.css
+++ b/frontend/src/css/katex.min.css
@@ -6,7 +6,6 @@
font-size: 110%;
line-height: inherit;
text-indent: 0;
- max-width: var(--markdown-max-width);
}
.katex * {