Compare commits

...

2 commits

Author SHA1 Message Date
thislight
27007412ec
*Toot: fix the thread line covers preview (#10)
All checks were successful
/ depoly (push) Successful in 1m6s
2024-09-14 12:34:45 +08:00
thislight
3beb8a880e
RegularToot: fix time display problem 2024-09-14 12:28:22 +08:00
2 changed files with 3 additions and 1 deletions

View file

@ -187,7 +187,7 @@ function TootAuthorGroup(props: { status: mastodon.v1.Status; now: Date }) {
}}
/>
<time datetime={toot().createdAt}>
{formatRelative(props.now, toot().createdAt)}
{formatRelative(toot().createdAt, props.now)}
</time>
<span>
@{toot().account.username}@{new URL(toot().account.url).hostname}

View file

@ -118,6 +118,8 @@
transition: color 220ms var(--tutu-anim-curve-std), background-color 220ms var(--tutu-anim-curve-std);
padding-bottom: 8px;
overflow: hidden;
z-index: 1;
position: relative;
>img {
max-width: 100%;