Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/organisms/HotActiveUsers/HotActiveUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function HotActiveUsers({ limit = DEFAULT_USERS_LIMIT, className }: HotAc

return (
<Container overrideDefaults className={cn('flex w-full flex-col gap-2', className)} data-testid="hot-active-users">
<Heading level={5} size="lg" className="font-light text-muted-foreground">
<Heading level={5} size="lg" className="hidden font-light text-muted-foreground lg:block">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Standalone section loses its label

When a nonexistent profile is opened below the lg breakpoint, ProfileUserNotFoundDiscoveryView renders this reusable component without the Hot page's tab navigation, so hiding the heading leaves the active-users list unlabeled.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

{'Active users'}
</Heading>
{error ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function HotTagsCardsSection({ className }: HotTagsCardsSectionProps) {
if (error) {
return (
<Container overrideDefaults className={cn('flex w-full flex-col gap-2', className)}>
<Heading level={5} size="lg" className="font-light text-muted-foreground">
<Heading level={5} size="lg" className="hidden font-light text-muted-foreground lg:block">
{'Hot tags'}
</Heading>
<Typography className="text-destructive">{'Failed to load tags'}</Typography>
Expand All @@ -93,7 +93,7 @@ export function HotTagsCardsSection({ className }: HotTagsCardsSectionProps) {
if (isEffectivelyLoading) {
return (
<Container overrideDefaults className={cn('flex w-full flex-col gap-2', className)}>
<Heading level={5} size="lg" className="font-light text-muted-foreground">
<Heading level={5} size="lg" className="hidden font-light text-muted-foreground lg:block">
{'Hot tags'}
</Heading>
<HotTagsCardsSectionSkeleton maxAvatars={maxAvatars} />
Expand All @@ -107,7 +107,7 @@ export function HotTagsCardsSection({ className }: HotTagsCardsSectionProps) {
className={cn('flex w-full flex-col gap-2', className)}
data-testid="hot-tags-cards-section"
>
<Heading level={5} size="lg" className="font-light text-muted-foreground">
<Heading level={5} size="lg" className="hidden font-light text-muted-foreground lg:block">
{'Hot tags'}
</Heading>
{featuredTags.length === 0 ? (
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/Feed/Hot/Hot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function Hot() {

{/* Trending Posts - hidden via CSS when another tab is active on mobile */}
<Container overrideDefaults className={cn('flex flex-col gap-2', hidePosts && 'hidden')}>
<Heading level={5} size="lg" className="font-light text-muted-foreground">
<Heading level={5} size="lg" className="hidden font-light text-muted-foreground lg:block">
{'Trending posts'}
</Heading>
<TimelineFeed variant={TIMELINE_FEED_VARIANT.HOT} />
Expand Down