Test allow linking to post from generic accounts modal

This commit is contained in:
Lim Chee Aun 2024-05-08 10:29:00 +08:00
parent e7aad03279
commit 90f06c511a
2 changed files with 21 additions and 2 deletions

View file

@ -17,6 +17,21 @@
); );
filter: saturate(0.5); 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 { .accounts-list {

View file

@ -11,6 +11,7 @@ import useLocationChange from '../utils/useLocationChange';
import AccountBlock from './account-block'; import AccountBlock from './account-block';
import Icon from './icon'; import Icon from './icon';
import Link from './link';
import Loader from './loader'; import Loader from './loader';
import Status from './status'; import Status from './status';
@ -143,9 +144,12 @@ export default function GenericAccounts({
</header> </header>
<main> <main>
{post && ( {post && (
<div class="post-preview"> <Link
to={`/${instance || currentInstance}/s/${post.id}`}
class="post-preview"
>
<Status status={post} size="s" readOnly /> <Status status={post} size="s" readOnly />
</div> </Link>
)} )}
{accounts.length > 0 ? ( {accounts.length > 0 ? (
<> <>