@marimo-team/islands 0.23.7-dev65 → 0.23.7-dev66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{code-visibility-ByDFdFl4.js → code-visibility-Dj3Cpe1F.js} +1 -1
- package/dist/main.js +2 -2
- package/dist/{reveal-component-b_lmX_5i.js → reveal-component-CcvoUUhQ.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/dependency-graph/minimap-content.tsx +14 -3
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ import { extractCellPreview } from "./utils/cell-preview";
|
|
|
21
21
|
|
|
22
22
|
interface MinimapCellProps {
|
|
23
23
|
cellId: CellId;
|
|
24
|
+
index: number;
|
|
24
25
|
cellPositions: Readonly<Record<CellId, number>>;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -67,7 +68,7 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
|
|
|
67
68
|
className={cn(
|
|
68
69
|
"group bg-transparent text-left w-full flex relative justify-between items-center",
|
|
69
70
|
"border-none rounded cursor-pointer",
|
|
70
|
-
"h-[21px] pl-[
|
|
71
|
+
"h-[21px] pl-[59px] font-inherit",
|
|
71
72
|
isSelected
|
|
72
73
|
? "text-primary-foreground"
|
|
73
74
|
: "text-(--gray-8) hover:text-(--gray-9)",
|
|
@@ -78,6 +79,12 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
|
|
|
78
79
|
// transitions from current cell -> null -> new cell.
|
|
79
80
|
onMouseDown={(e) => e.preventDefault()}
|
|
80
81
|
>
|
|
82
|
+
<span
|
|
83
|
+
className="absolute left-0 top-0 h-full w-5 flex items-center justify-end pr-1.5 text-[10px] tabular-nums pointer-events-none select-none text-(--gray-9)"
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
>
|
|
86
|
+
{props.index}
|
|
87
|
+
</span>
|
|
81
88
|
<div
|
|
82
89
|
className={cn(
|
|
83
90
|
"group-hover:bg-(--gray-2) flex h-full w-full px-0.5 items-center rounded",
|
|
@@ -99,7 +106,7 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
|
|
|
99
106
|
</div>
|
|
100
107
|
<svg
|
|
101
108
|
className={cn(
|
|
102
|
-
"absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+
|
|
109
|
+
"absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+25px)] pointer-events-none",
|
|
103
110
|
isSelected ? "z-[1]" : "z-0",
|
|
104
111
|
getTextColor({ cell, selectedCell }),
|
|
105
112
|
)}
|
|
@@ -404,7 +411,11 @@ export const MinimapContent: React.FC = () => {
|
|
|
404
411
|
aria-hidden="true"
|
|
405
412
|
/>
|
|
406
413
|
)}
|
|
407
|
-
<MinimapCell
|
|
414
|
+
<MinimapCell
|
|
415
|
+
cellId={cellId}
|
|
416
|
+
index={idx}
|
|
417
|
+
cellPositions={cellPositions}
|
|
418
|
+
/>
|
|
408
419
|
</React.Fragment>
|
|
409
420
|
);
|
|
410
421
|
})}
|