diff options
| author | Amelia Yukii <123300075+Insert5StarName@users.noreply.github.com> | 2023-11-03 23:20:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-03 23:20:53 +0100 |
| commit | 08de1f7baa525c9b59ffb876600149462712cd6b (patch) | |
| tree | b75afb1029f813fb68dc97548e11b608ef335a45 /packages/frontend/src/scripts | |
| parent | Merge branch 'develop' of https://github.com/transfem-org/Sharkey into develop (diff) | |
| download | sharkey-08de1f7baa525c9b59ffb876600149462712cd6b.tar.gz sharkey-08de1f7baa525c9b59ffb876600149462712cd6b.tar.bz2 sharkey-08de1f7baa525c9b59ffb876600149462712cd6b.zip | |
fix: icons being inconsistent and PG (#136)
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/get-drive-file-menu.ts | 2 | ||||
| -rw-r--r-- | packages/frontend/src/scripts/get-note-menu.ts | 8 | ||||
| -rw-r--r-- | packages/frontend/src/scripts/get-user-menu.ts | 12 |
3 files changed, 11 insertions, 11 deletions
diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts index 94a2233635..b5173f421d 100644 --- a/packages/frontend/src/scripts/get-drive-file-menu.ts +++ b/packages/frontend/src/scripts/get-drive-file-menu.ts @@ -117,7 +117,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss type: 'link', to: `/my/drive/file/${file.id}`, text: i18n.ts._fileViewer.title, - icon: 'ph-file-text ph-bold pg-lg', + icon: 'ph-file-text ph-bold ph-lg', }, null, { text: i18n.ts.delete, icon: 'ph-trash ph-bold ph-lg', diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index b0710dfa50..239199172e 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -305,7 +305,7 @@ export function getNoteMenu(props: { }, } : undefined, { - icon: 'ph-share-network ph-bold pg-lg', + icon: 'ph-share-network ph-bold ph-lg', text: i18n.ts.share, action: share, }, @@ -316,11 +316,11 @@ export function getNoteMenu(props: { } : undefined, null, statePromise.then(state => state.isFavorited ? { - icon: 'ph-star-half ph-bold pg-lg', + icon: 'ph-star-half ph-bold ph-lg', text: i18n.ts.unfavorite, action: () => toggleFavorite(false), } : { - icon: 'ph-star ph-bold pg-lg', + icon: 'ph-star ph-bold ph-lg', text: i18n.ts.favorite, action: () => toggleFavorite(true), }), @@ -383,7 +383,7 @@ export function getNoteMenu(props: { action: edit, } : undefined, { - icon: 'ph-pencil-line ph-bold pg-lg', + icon: 'ph-pencil-line ph-bold ph-lg', text: i18n.ts.deleteAndEdit, danger: true, action: delEdit, diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index 618bc21c2b..c8942314b2 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -170,7 +170,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router copyToClipboard(`${user.host ?? host}/@${user.username}.atom`); }, }, { - icon: 'ph-share-network ph-bold pg-lg', + icon: 'ph-share-network ph-bold ph-lg', text: i18n.ts.copyProfileUrl, action: () => { const canonical = user.host === null ? `@${user.username}` : `@${user.username}@${toUnicode(user.host)}`; @@ -191,7 +191,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router }, }, { type: 'parent', - icon: 'ph-list ph-bold pg-lg', + icon: 'ph-list ph-bold ph-lg', text: i18n.ts.addToList, children: async () => { const lists = await userListsCache.fetch(); @@ -224,7 +224,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router }, }, { type: 'parent', - icon: 'ph-flying-saucer ph-bold pg-lg', + icon: 'ph-flying-saucer ph-bold ph-lg', text: i18n.ts.addToAntenna, children: async () => { const antennas = await antennasCache.fetch(); @@ -255,7 +255,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router if (iAmModerator) { menu = menu.concat([{ type: 'parent', - icon: 'ph-seal-check ph-bold pg-lg', + icon: 'ph-seal-check ph-bold ph-lg', text: i18n.ts.roles, children: async () => { const roles = await rolesCache.fetch(); @@ -297,11 +297,11 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router // フォローしたとしても user.isFollowing はリアルタイム更新されないので不便なため //if (user.isFollowing) { menu = menu.concat([{ - icon: user.withReplies ? 'ph-envelope-open ph-bold pg-lg' : 'ph-envelope ph-bold pg-lg-off', + icon: user.withReplies ? 'ph-envelope-open ph-bold ph-lg' : 'ph-envelope ph-bold ph-lg-off', text: user.withReplies ? i18n.ts.hideRepliesToOthersInTimeline : i18n.ts.showRepliesToOthersInTimeline, action: toggleWithReplies, }, { - icon: user.notify === 'none' ? 'ph-bell ph-bold pg-lg' : 'ph-bell ph-bold pg-lg-off', + icon: user.notify === 'none' ? 'ph-bell ph-bold ph-lg' : 'ph-bell ph-bold ph-lg-off', text: user.notify === 'none' ? i18n.ts.notifyNotes : i18n.ts.unnotifyNotes, action: toggleNotify, }]); |