Skip to content

Commit

Permalink
Test allow linking to post from generic accounts modal
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed May 8, 2024
1 parent e7aad03 commit 90f06c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/components/generic-accounts.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
);
filter: saturate(0.5);
}

&:is(a) {
pointer-events: auto;
display: block;
text-decoration: none;
color: inherit;

&:hover {
border-color: var(--outline-hover-color);
}

.status {
filter: none;
}
}
}

.accounts-list {
Expand Down
8 changes: 6 additions & 2 deletions src/components/generic-accounts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import useLocationChange from '../utils/useLocationChange';

import AccountBlock from './account-block';
import Icon from './icon';
import Link from './link';
import Loader from './loader';
import Status from './status';

Expand Down Expand Up @@ -143,9 +144,12 @@ export default function GenericAccounts({
</header>
<main>
{post && (
<div class="post-preview">
<Link
to={`/${instance || currentInstance}/s/${post.id}`}
class="post-preview"
>
<Status status={post} size="s" readOnly />
</div>
</Link>
)}
{accounts.length > 0 ? (
<>
Expand Down

0 comments on commit 90f06c5

Please sign in to comment.