diff --git a/src/components/AuthorByline.tsx b/src/components/AuthorByline.tsx index 147b8d9..c9a649d 100644 --- a/src/components/AuthorByline.tsx +++ b/src/components/AuthorByline.tsx @@ -41,7 +41,7 @@ export function AuthorByline({ {author} @@ -54,15 +54,15 @@ export function AuthorByline({ // that class's `-mx-1.5 -my-0.5` negative margins would extend OUT // of the wrapper into adjacent meta-row items (Globe / Clock pills) // and cause overlap. The substitute `hover:text-accent` is axe-OK - // here because the OP variant also has the always-visible badge + - // bolder weight, so hover colour isn't the only "I'm clickable" - // affordance. + // here because the OP variant already carries an always-visible + // badge, so the hover colour is additive rather than the only + // distinctive treatment in that byline slot. return ( {author} @@ -78,7 +78,7 @@ export function AuthorByline({ // leave `''` as a blank span and break `screen.getByText('unknown')` // assertions in StoryCard / Comment / CommentArticle tests. return ( - + {/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */} {author || 'unknown'} diff --git a/src/components/Comment.tsx b/src/components/Comment.tsx index 317690a..a50b036 100644 --- a/src/components/Comment.tsx +++ b/src/components/Comment.tsx @@ -55,7 +55,7 @@ export function Comment({ comment, storyAuthor = '', stageIdx }: CommentProps) { {comment.author} @@ -63,12 +63,12 @@ export function Comment({ comment, storyAuthor = '', stageIdx }: CommentProps) { ) : isKnownAuthor(comment.author) ? ( {comment.author} ) : ( - + {comment.author || 'unknown'} )} diff --git a/src/pages/UserProfile.tsx b/src/pages/UserProfile.tsx index 18be657..4d1155a 100644 --- a/src/pages/UserProfile.tsx +++ b/src/pages/UserProfile.tsx @@ -142,7 +142,7 @@ export function UserProfile() { submissions