The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Galleries: a card's description stays inside the card on hover
Adarshe1ef84551c13
diff --git a/src/components/preset-gallery.tsx b/src/components/preset-gallery.tsxindex 1365d659..6d97c288 100644--- a/src/components/preset-gallery.tsx+++ b/src/components/preset-gallery.tsx@@ -82,19 +82,11 @@ export const PresetCard = memo(function PresetCard({<div className="min-w-0 px-0.5"><p className="truncate text-[13px] font-medium">{preset.name}</p>{!compact && (- // Two lines hold the card's place in the grid; on hover or focus the full text shows in a panel that- // continues the card's hover background below it, over the next row, so nothing reflows.- <div className="relative">- <p className="line-clamp-2 text-[12px] leading-snug text-muted-foreground group-hover/card:invisible group-focus-visible/card:invisible">- {preset.description}- </p>- <p- aria-hidden- className="pointer-events-none absolute inset-x-0 top-0 z-10 -mx-2 hidden rounded-b-xl bg-accent px-2 pb-2 text-[12px] leading-snug text-muted-foreground shadow-md group-hover/card:block group-focus-visible/card:block"- >- {preset.description}- </p>- </div>+ // Two lines hold the card's place in the grid and stay inside the card on hover (a panel over the next+ // row read as broken); the full text is the tooltip and the preset's own page.+ <p title={preset.description} className="line-clamp-2 text-[12px] leading-snug text-muted-foreground">+ {preset.description}+ </p>)}</div></IntentLink>