From 1979f35f631ede236e3dea76f40b8bfcd81038b7 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 2 Jul 2026 21:04:08 +0000 Subject: [PATCH] Stop example cards from overflowing the Train config column The example-dataset cards still overran the ~340px config column: the license used the Badge component whose baked-in w-fit and whitespace-nowrap ignored the max-width and truncate, and the grid children had the default min-width auto so wide content pushed past the column edge and clipped the Import buttons. Replace the badge with a plain truncating pill span, and give the config column min-w-0 with overflow-x-hidden so nothing escapes its width. --- .../images/train/diffusion-train-panel.tsx | 2 +- .../images/train/example-dataset-cards.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx index ee97811214..5706aa2ad6 100644 --- a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx +++ b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx @@ -433,7 +433,7 @@ export function DiffusionTrainPanel({ return (
{/* Left: configure */} -
+

Train a LoRA

diff --git a/studio/frontend/src/features/images/train/example-dataset-cards.tsx b/studio/frontend/src/features/images/train/example-dataset-cards.tsx index 93be3fd200..4a80ca53a2 100644 --- a/studio/frontend/src/features/images/train/example-dataset-cards.tsx +++ b/studio/frontend/src/features/images/train/example-dataset-cards.tsx @@ -3,7 +3,6 @@ import { useCallback, useEffect, useState } from "react"; -import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { toast } from "@/lib/toast"; @@ -77,18 +76,19 @@ export function ExampleDatasetCards({ {examples.map((ex) => (

- {ex.label} - + {ex.label} + + {ex.license} - +

{ex.description}