diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-11-04 21:52:12 +0100 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-11-04 21:52:12 +0100 |
| commit | db29a5c2da3a8dcf630536b95337df398440d86e (patch) | |
| tree | 421faa6ae5c4a22a18105a7b1412af9ec06dbfa2 /packages/frontend/src/scripts | |
| parent | chore: replace icons on new menu (diff) | |
| parent | fix: icons being inconsistent and PG (#136) (diff) | |
| download | sharkey-db29a5c2da3a8dcf630536b95337df398440d86e.tar.gz sharkey-db29a5c2da3a8dcf630536b95337df398440d86e.tar.bz2 sharkey-db29a5c2da3a8dcf630536b95337df398440d86e.zip | |
merge: develop
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 852e9147bc..87f3886847 100644 --- a/packages/frontend/src/scripts/get-drive-file-menu.ts +++ b/packages/frontend/src/scripts/get-drive-file-menu.ts @@ -81,7 +81,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.rename, icon: 'ph-textbox 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 4ede9389d1..e64c08c0ab 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -306,7 +306,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, }, @@ -317,11 +317,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), }), @@ -384,7 +384,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, }]); |