Skip to content

Commit

Permalink
Middle click on title to open entry in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrozenByte committed Nov 23, 2023
1 parent e0c9805 commit 845c857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/js/templates/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ export default function Item({ currentTime, item, selected, expanded, setNavExpa
className="entry-title"
onClick={titleOnClick}
>
<span
<a
href={item.link}
className="entry-title-link"
aria-expanded={expanded}
aria-current={selected}
role="link"
tabIndex="0"
onKeyUp={handleKeyUp}
dangerouslySetInnerHTML={titleHtml}
Expand Down
3 changes: 2 additions & 1 deletion client/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ span.offline-count.diff {
}

.entry-title a {
color: var(--primary);
color: inherit;
text-decoration: none;
}

.entry.unread .entry-title {
Expand Down

0 comments on commit 845c857

Please sign in to comment.