Skip to content

Commit 17758f7

Browse files
committed
chore(webapp): drop the section-id label from gallery tiles
1 parent 555b77e commit 17758f7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

apps/webapp/app/routes/storybook.agent-ui/gallery.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ function Section({
8181
const state = states[section.sectionId];
8282
return (
8383
<section id={section.sectionId} className="w-fit scroll-mt-4 space-y-1.5">
84-
<div className="flex items-baseline gap-2">
85-
<h3 className="text-sm font-medium text-text-bright">{section.title}</h3>
86-
<code className="font-mono text-[10px] text-text-faint">{section.sectionId}</code>
87-
</div>
84+
{/* The section id stays as the DOM id / deep-link anchor; showing it
85+
overflowed the tile, and `title` says what the state is. */}
86+
<h3 className="text-sm font-medium text-text-bright">{section.title}</h3>
8887
<div className={cn(WIDE_SECTIONS.has(section.sectionId) ? "w-auto" : PANEL)}>
8988
{state ?? <Missing what={`section "${section.sectionId}"`} />}
9089
</div>

0 commit comments

Comments
 (0)