Skip to content

Commit

Permalink
fix(Mention): underline on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Oct 23, 2023
1 parent 7e913aa commit 79e1f86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Timeline: move pin button to remote (instance) timeline's header
- Search: move search icon to the start of textbox
- UI: changed how user acct is rendered, domain now shown as button (similar to Thread)
- Mention: fix mention doesn't have underline on hover

## 2023.10.3
- UI: highlight mentions
Expand Down
4 changes: 2 additions & 2 deletions src/soapbox/components/mention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export const Mention: React.FC<IMention> = ({ mention, textSize = 'md' }) => {
}, []);

return (
<Link onClick={e => e.stopPropagation()} to={`/@${account.acct}`} title={`@${account.fqn}`} className='mention inline-block rounded-full bg-primary-200 py-1 pl-1 pr-2 text-primary-600 dark:bg-primary-800 dark:text-primary-400'>
<HoverRefWrapper key={account.id} accountId={account.id} className='inline-flex items-center align-top'>
<Link onClick={e => e.stopPropagation()} to={`/@${account.acct}`} title={`@${account.fqn}`} className='mention group inline-block rounded-full bg-primary-200 py-1 pl-1 pr-2 text-primary-600 dark:bg-primary-800 dark:text-primary-400'>
<HoverRefWrapper key={account.id} accountId={account.id} className='inline-flex items-center align-top group-hover:underline'>
<Avatar size={avatarSize} src={account.avatar} className='mr-1.5 inline-flex items-center align-bottom' />
<span>@{account.acct}</span>
</HoverRefWrapper>
Expand Down

0 comments on commit 79e1f86

Please sign in to comment.