Skip to content

Commit

Permalink
Change hashtags to only be de-emphasized in advanced web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Aug 28, 2023
1 parent f398474 commit 67f8f4b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app/javascript/mastodon/components/hashtag_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { groupBy, minBy } from 'lodash';

import { getStatusContent } from './status_content';

// About two lines on desktop
const VISIBLE_HASHTAGS = 7;
// Fit on a single line on desktop
const VISIBLE_HASHTAGS = 3;

// Those types are not correct, they need to be replaced once this part of the state is typed
export type TagLike = Record<{ name: string }>;
Expand Down Expand Up @@ -210,7 +210,7 @@ const HashtagBar: React.FC<{

const revealedHashtags = expanded
? hashtags
: hashtags.slice(0, VISIBLE_HASHTAGS - 1);
: hashtags.slice(0, VISIBLE_HASHTAGS);

return (
<div className='hashtag-bar'>
Expand Down
19 changes: 12 additions & 7 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9302,19 +9302,24 @@ noscript {
display: flex;
flex-wrap: wrap;
font-size: 14px;
line-height: 18px;
gap: 4px;
color: $darker-text-color;

a {
display: inline-flex;
color: $dark-text-color;
color: inherit;
text-decoration: none;

&:hover {
text-decoration: none;

span {
text-decoration: underline;
}
&:hover span {
text-decoration: underline;
}
}

.link-button {
color: inherit;
font-size: inherit;
line-height: inherit;
padding: 0;
}
}

0 comments on commit 67f8f4b

Please sign in to comment.