Skip to content

Commit cdcc0ff

Browse files
committed
fix(tanstack-migrator): keep active widget minimal on small tiles (no scroll)
Only render the metrics grid + links on a wide tile. Small tiles show just header + stepper + parity bar again, so content fits without a scrollbar.
1 parent 944c8dc commit cdcc0ff

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • tanstack-migrator/web/tools/widget-active

tanstack-migrator/web/tools/widget-active/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ function ActiveSite({ site, wide }: { site: SiteView; wide: boolean }) {
129129
</p>
130130
)}
131131

132-
{/* metrics + links fill the remaining space instead of stretching the stepper */}
133-
<Metrics site={site} wide={wide} />
134-
<Links site={site} />
132+
{/* extra info only on a wide tile — small stays minimal (no scroll) */}
133+
{wide && (
134+
<>
135+
<Metrics site={site} wide={wide} />
136+
<Links site={site} />
137+
</>
138+
)}
135139
</>
136140
);
137141
}

0 commit comments

Comments
 (0)