Merge pull request #267 from cheeaun/main

Update from main
This commit is contained in:
Chee Aun 2023-10-19 07:17:54 +08:00 committed by GitHub
commit cb80057f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View file

@ -23,5 +23,6 @@ jobs:
- run: cd dist && zip -r ../phanpy-dist.zip . && cd .. - run: cd dist && zip -r ../phanpy-dist.zip . && cd ..
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
tag_name: ${{ github.ref_name }}
generate_release_notes: true generate_release_notes: true
files: phanpy-dist.zip files: phanpy-dist.zip

View file

@ -223,9 +223,11 @@ function AccountInfo({
// On first load, fetch familiar followers, merge to top of results' `value` // On first load, fetch familiar followers, merge to top of results' `value`
// Remove dups on every fetch // Remove dups on every fetch
if (firstLoad) { if (firstLoad) {
const familiarFollowers = await masto.v1.accounts const familiarFollowers = await masto.v1.accounts.familiarFollowers.fetch(
.familiarFollowers(id) {
.fetch(); id: [id],
},
);
familiarFollowersCache.current = familiarFollowers[0].accounts; familiarFollowersCache.current = familiarFollowers[0].accounts;
newValue = [ newValue = [
...familiarFollowersCache.current, ...familiarFollowersCache.current,

View file

@ -128,6 +128,7 @@ function AccountStatuses() {
to={`/${instance}/a/${id}`} to={`/${instance}/a/${id}`}
class="insignificant filter-clear" class="insignificant filter-clear"
title="Clear filters" title="Clear filters"
key="clear-filters"
> >
<Icon icon="x" size="l" /> <Icon icon="x" size="l" />
</Link> </Link>

View file

@ -30,6 +30,10 @@
.ancestors-indicator { .ancestors-indicator {
font-size: 70% !important; font-size: 70% !important;
& > .avatar:not(:first-child) {
margin-left: -4px;
}
} }
.ancestors-indicator:not([hidden]) { .ancestors-indicator:not([hidden]) {
animation: slide-up 0.3s both ease-out 0.3s; animation: slide-up 0.3s both ease-out 0.3s;