Skip to content

Add padding between cell number and minimap dependency lines#9675

Merged
akshayka merged 1 commit into
mainfrom
aka/minimap-padding
May 25, 2026
Merged

Add padding between cell number and minimap dependency lines#9675
akshayka merged 1 commit into
mainfrom
aka/minimap-padding

Conversation

@akshayka

Copy link
Copy Markdown
Contributor

In the dependency-graph minimap, the upstream whisker on a selected cell extended to within ~2px of the cell-number label's container, making the line visually collide with the number when a cell was selected.

This change shifts the dependency-dot SVG and the variable list 6px to the right so the whisker has breathing room against the label.

image
In the dependency-graph minimap, the upstream whisker on a selected
cell extended to within ~2px of the cell-number label's container,
making the line visually collide with the number when a cell was
selected. Shift the dependency-dot SVG and the variable list 6px to
the right so the whisker has breathing room against the label.
@akshayka akshayka requested review from Light2Dark and Copilot May 23, 2026 16:04
@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment May 23, 2026 4:04pm

Request Review

@akshayka akshayka added the enhancement New feature or request label May 23, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the dependency-graph minimap layout so the selected-cell upstream “whisker” no longer visually collides with the cell-number label area, improving readability of the minimap UI.

Changes:

  • Increased left padding of each minimap row to move the variable/preview text rightward.
  • Shifted the dependency-dot SVG’s absolute left offset rightward to match the new gutter.
Comment on lines 69 to 72
"group bg-transparent text-left w-full flex relative justify-between items-center",
"border-none rounded cursor-pointer",
"h-[21px] pl-[59px] font-inherit",
"h-[21px] pl-[65px] font-inherit",
isSelected
Comment on lines 108 to 111
className={cn(
"absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+25px)] pointer-events-none",
"absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+31px)] pointer-events-none",
isSelected ? "z-[1]" : "z-0",
getTextColor({ cell, selectedCell }),

@Light2Dark Light2Dark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

I don't really notice any issue with the original styles but deferring to you if there is

@akshayka

akshayka commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, for some configurations (when there is an ancestor and descendant) the line overlaps the number (Trevor reported the issue)

@akshayka akshayka merged commit 3c65904 into main May 25, 2026
33 of 34 checks passed
@akshayka akshayka deleted the aka/minimap-padding branch May 25, 2026 04:47
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.23.9-dev3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

3 participants