File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1035,13 +1035,15 @@ export default function BlogGraphPage() {
10351035 { selectedNodeData . connectedTags . length > 0 && (
10361036 < div className = { `px-4 py-3 border-b ${ isDark ? 'border-white/[0.08]' : 'border-gray-200' } ` } >
10371037 < p className = { `font-mono text-[10px] tracking-[0.18em] uppercase mb-2 ${ isDark ? 'text-brand-fg-muted' : 'text-gray-500' } ` } > Related Topics</ p >
1038- { /* Mobile: show 6 chips. Desktop: show 12. Keep posts the primary content. */ }
1039- < div className = "flex flex-wrap gap-1 sm:gap-1.5" >
1040- { selectedNodeData . connectedTags . slice ( 0 , 12 ) . map ( ( { tag, weight } , i ) => (
1038+ { /* Mobile: single-row horizontal scroll so posts get the vertical space. Desktop: wrap. */ }
1039+ < div
1040+ className = "flex flex-nowrap sm:flex-wrap gap-1 sm:gap-1.5 overflow-x-auto sm:overflow-visible -mx-4 px-4 sm:mx-0 sm:px-0 pb-1 sm:pb-0 [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]"
1041+ >
1042+ { selectedNodeData . connectedTags . slice ( 0 , 12 ) . map ( ( { tag, weight } ) => (
10411043 < button
10421044 key = { tag }
10431045 onClick = { ( ) => { setSelectedNode ( tag ) ; focusOnTag ( tag ) ; } }
1044- className = { `font-mono text-[10px] tracking-[0.06em] uppercase border px-1.5 py-0.5 transition-colors ${ i >= 6 ? 'hidden sm:inline-flex' : '' } ${ isDark ? 'border-brand-accent/30 hover:border-brand-accent text-brand-fg-muted hover:text-brand-accent' : 'border-cyan-700/30 hover:border-cyan-700 text-gray-700 hover:text-cyan-700' } ` }
1046+ className = { `flex-shrink-0 font-mono text-[10px] tracking-[0.06em] uppercase border px-1.5 py-0.5 transition-colors ${ isDark ? 'border-brand-accent/30 hover:border-brand-accent text-brand-fg-muted hover:text-brand-accent' : 'border-cyan-700/30 hover:border-cyan-700 text-gray-700 hover:text-cyan-700' } ` }
10451047 >
10461048 { tag }
10471049 < span className = { `ml-1 ${ isDark ? 'text-brand-fg-muted/70' : 'text-gray-400' } ` } > { weight } </ span >
You can’t perform that action at this time.
0 commit comments