chore: 調整2

This commit is contained in:
Sayamame-beans 2024-12-03 21:41:46 +09:00
parent 9b25b0a77a
commit 68055decfc

View file

@ -302,7 +302,7 @@ export function getNoteMenu(props: {
text: i18n.ts.unclip, text: i18n.ts.unclip,
danger: true, danger: true,
action: unclip, action: unclip,
}, { type: 'divider' as const }); }, { type: 'divider' });
} }
menuItems.push({ menuItems.push({
@ -350,7 +350,7 @@ export function getNoteMenu(props: {
}); });
} }
menuItems.push({ type: 'divider' as const }); menuItems.push({ type: 'divider' });
menuItems.push(statePromise.then(state => state.isFavorited ? { menuItems.push(statePromise.then(state => state.isFavorited ? {
icon: 'ti ti-star-off', icon: 'ti ti-star-off',
@ -408,12 +408,12 @@ export function getNoteMenu(props: {
}); });
if (appearNote.userId !== $i.id) { if (appearNote.userId !== $i.id) {
menuItems.push({ type: 'divider' as const }); menuItems.push({ type: 'divider' });
menuItems.push(getAbuseNoteMenu(appearNote, i18n.ts.reportAbuse)); menuItems.push(getAbuseNoteMenu(appearNote, i18n.ts.reportAbuse));
} }
if (appearNote.channel && (appearNote.channel.userId === $i.id || $i.isModerator || $i.isAdmin)) { if (appearNote.channel && (appearNote.channel.userId === $i.id || $i.isModerator || $i.isAdmin)) {
menuItems.push({ type: 'divider' as const }); menuItems.push({ type: 'divider' });
menuItems.push({ menuItems.push({
type: 'parent', type: 'parent',
icon: 'ti ti-device-tv', icon: 'ti ti-device-tv',
@ -448,7 +448,7 @@ export function getNoteMenu(props: {
} }
if (appearNote.userId === $i.id || $i.isModerator || $i.isAdmin) { if (appearNote.userId === $i.id || $i.isModerator || $i.isAdmin) {
menuItems.push({ type: 'divider' as const }); menuItems.push({ type: 'divider' });
if (appearNote.userId === $i.id) { if (appearNote.userId === $i.id) {
menuItems.push({ menuItems.push({
icon: 'ti ti-edit', icon: 'ti ti-edit',