fix some icons

This commit is contained in:
dakkar 2024-05-11 13:09:32 +01:00
parent af801bd9d2
commit af2385700d
3 changed files with 8 additions and 5 deletions

View file

@ -570,7 +570,10 @@ seems to do a decent job)
`packages/frontend/src/ui/deck/tl-column.vue`, `packages/frontend/src/ui/deck/tl-column.vue`,
`packages/frontend/src/widgets/WidgetTimeline.vue`) `packages/frontend/src/widgets/WidgetTimeline.vue`)
* make sure there aren't any new `ti-*` classes (Tabler Icons), and * make sure there aren't any new `ti-*` classes (Tabler Icons), and
replace them with appropriate `ph-*` ones (Phosphor Icons) replace them with appropriate `ph-*` ones (Phosphor Icons).
`git grep '["'\'']ti[ -](?!fw)'` should show you what to change.
NOTE: `ti-fw` is a special class that's defined by Misskey, leave it
alone
* re-generate `misskey-js`: `pnpm build-misskey-js-with-types` * re-generate `misskey-js`: `pnpm build-misskey-js-with-types`
* run tests `pnpm test` and fix as much as you can * run tests `pnpm test` and fix as much as you can
* right now `megalodon` doesn't pass its tests, you probably need to * right now `megalodon` doesn't pass its tests, you probably need to

View file

@ -15,8 +15,8 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
<div v-else>({{ i18n.ts.noDescription }})</div> <div v-else>({{ i18n.ts.noDescription }})</div>
<div> <div>
<MkButton v-if="favorited" v-tooltip="i18n.ts.unfavorite" asLike rounded primary @click="unfavorite()"><i class="ti ti-heart"></i><span v-if="clip.favoritedCount > 0" style="margin-left: 6px;">{{ clip.favoritedCount }}</span></MkButton> <MkButton v-if="favorited" v-tooltip="i18n.ts.unfavorite" asLike rounded primary @click="unfavorite()"><i class="ph-heart ph-bold pd-lg"></i><span v-if="clip.favoritedCount > 0" style="margin-left: 6px;">{{ clip.favoritedCount }}</span></MkButton>
<MkButton v-else v-tooltip="i18n.ts.favorite" asLike rounded @click="favorite()"><i class="ti ti-heart"></i><span v-if="clip.favoritedCount > 0" style="margin-left: 6px;">{{ clip.favoritedCount }}</span></MkButton> <MkButton v-else v-tooltip="i18n.ts.favorite" asLike rounded @click="favorite()"><i class="ph-heart ph-bold pd-lg"></i><span v-if="clip.favoritedCount > 0" style="margin-left: 6px;">{{ clip.favoritedCount }}</span></MkButton>
</div> </div>
</div> </div>
<div :class="$style.user"> <div :class="$style.user">

View file

@ -47,8 +47,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkAvatar :user="page.user" :class="$style.avatar" indicator link preview/> <MkA :to="`/@${username}`"><MkUserName :user="page.user" :nowrap="false"/></MkA> <MkAvatar :user="page.user" :class="$style.avatar" indicator link preview/> <MkA :to="`/@${username}`"><MkUserName :user="page.user" :nowrap="false"/></MkA>
</div> </div>
<div :class="$style.pageBannerTitleSubActions"> <div :class="$style.pageBannerTitleSubActions">
<MkA v-if="page.userId === $i?.id" v-tooltip="i18n.ts._pages.editThisPage" :to="`/pages/edit/${page.id}`" class="_button" :class="$style.generalActionButton"><i class="ti ti-pencil ti-fw"></i></MkA> <MkA v-if="page.userId === $i?.id" v-tooltip="i18n.ts._pages.editThisPage" :to="`/pages/edit/${page.id}`" class="_button" :class="$style.generalActionButton"><i class="ph-pencil-simple ph-bold ph-lg"></i></MkA>
<button v-tooltip="i18n.ts.share" class="_button" :class="$style.generalActionButton" @click="share"><i class="ti ti-share ti-fw"></i></button> <button v-tooltip="i18n.ts.share" class="_button" :class="$style.generalActionButton" @click="share"><i class="ph-share-network ph-bold ph-lg ti-fw"></i></button>
</div> </div>
</div> </div>
</div> </div>