#1579

Profile header hover: split underline on the stats, no padding on the moderation line

Openyeapeaopened 18d ago

Three small hover issues in the profile header.

1. The underline breaks at the space

Hovering a stat underlines the number and the label separately, so "6 followers" gets two lines with a gap in between.

Each stat in resources/js/pages/user/show.tsx renders two links, one in the <dt> and one in the <dd>, and both use group-hover:underline. The gap-1.5 between them isn't part of either link, so there's nothing there to underline.

2. The moderation history button has no horizontal padding

The "0 timeouts · 0 bans" line (shown on your own profile and to moderators) is a ghost Button, so it gets a background on hover. With !px-0 that background stops right at the gavel icon on the left and right after "bans" on the right.

It had px-2 when it came in with #1561. #1562 changed that to px-0 and bf8975e to !px-0, to line it up with the rows around it. Something like -mx-2 !px-2 would keep it aligned and still give the background some room.

3. Two different hover styles in one block

The stats right above it underline on hover, and so do the website and GitHub links further up. The moderation line sits in the same block but gets a filled background instead. If it underlined like the stats, the block would be consistent, and point 2 wouldn't come up at all.

Activity

0

No activity yet.