グローバルタイムラインのアイコンを変更

This commit is contained in:
NoriDev 2023-06-16 16:47:37 +09:00
parent 04d9cc7e3d
commit 94d781923d
9 changed files with 12 additions and 11 deletions

View file

@ -70,6 +70,7 @@
- 답글도 번역할 수 있도록 개선
- 리노트 했을 때 뜨는 토스트 팝업에 아이콘 추가
- 노트의 서버 정보 옵션의 순서를 변경
- 글로벌 타임라인의 아이콘 변경
- Fix: (Friendly) 플로팅 메뉴를 길게 눌렀을 때 프로필 이미지를 드래그 할 수 있는 문제
- Fix: (Friendly) 타임라인이 변경되었을 때 네비게이션 바의 인디케이터가 사라지지 않는 문제
- Fix: (Friendly) 모바일에서 헤더가 사라졌을 때 프로필 아이콘의 높이가 잘못 설정되는 문제

View file

@ -143,7 +143,7 @@ const headerTabs = $computed(() => [{
}, {
key: 'federation',
title: i18n.ts.federation,
icon: 'ti ti-whirl',
icon: 'ti ti-world',
}, {
key: 'charts',
title: i18n.ts.charts,

View file

@ -96,7 +96,7 @@ const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({
title: i18n.ts.federation,
icon: 'ti ti-whirl',
icon: 'ti ti-world',
})));
</script>

View file

@ -106,7 +106,7 @@ const menuDef = $computed(() => [{
to: '/admin/emojis',
active: currentPage?.route.name === 'emojis',
}, {
icon: 'ti ti-whirl',
icon: 'ti ti-world',
text: i18n.ts.federation,
to: '/admin/federation',
active: currentPage?.route.name === 'federation',

View file

@ -204,7 +204,7 @@ const headerTabs = $computed(() => [{
}] : []), ...(isGlobalTimelineAvailable ? [{
key: 'global',
title: i18n.ts._timelines.global,
icon: 'ti ti-whirl',
icon: 'ti ti-world',
iconOnly: true,
}] : []), {
icon: 'ti ti-list',
@ -233,14 +233,14 @@ const headerTabsWhenNotLogin = $computed(() => [
...(isGlobalTimelineAvailable ? [{
key: 'global',
title: i18n.ts._timelines.global,
icon: 'ti ti-whirl',
icon: 'ti ti-world',
iconOnly: true,
}] : []),
] as Tab[]);
definePageMetadata(computed(() => ({
title: i18n.ts.timeline,
icon: src === 'local' ? 'ti ti-planet' : src === 'social' ? 'ti ti-rocket' : src === 'global' ? 'ti ti-whirl' : 'ti ti-home',
icon: src === 'local' ? 'ti ti-planet' : src === 'social' ? 'ti ti-rocket' : src === 'global' ? 'ti ti-world' : 'ti ti-home',
})));
</script>

View file

@ -21,7 +21,7 @@ export function openInstanceMenu(ev: MouseEvent) {
}, {
type: 'link',
text: i18n.ts.federation,
icon: 'ti ti-whirl',
icon: 'ti ti-world',
to: '/about#federation',
}, {
type: 'link',

View file

@ -5,7 +5,7 @@
<i v-else-if="column.tl === 'local'" class="ti ti-planet"></i>
<i v-else-if="column.tl === 'social'" class="ti ti-rocket"></i>
<i v-else-if="column.tl === 'media'" class="ti ti-photo"></i>
<i v-else-if="column.tl === 'global'" class="ti ti-whirl"></i>
<i v-else-if="column.tl === 'global'" class="ti ti-world"></i>
<span style="margin-left: 8px;">{{ column.name }}</span>
</template>

View file

@ -1,6 +1,6 @@
<template>
<MkContainer :showHeader="widgetProps.showHeader" :foldable="foldable" :scrollable="scrollable" data-cy-mkw-federation class="mkw-federation">
<template #icon><i class="ti ti-whirl"></i></template>
<template #icon><i class="ti ti-world"></i></template>
<template #header>{{ i18n.ts._widgets.federation }}</template>
<div class="wbrkwalb">

View file

@ -4,7 +4,7 @@
<i v-if="widgetProps.src === 'home'" class="ti ti-home"></i>
<i v-else-if="widgetProps.src === 'local'" class="ti ti-planet"></i>
<i v-else-if="widgetProps.src === 'social'" class="ti ti-rocket"></i>
<i v-else-if="widgetProps.src === 'global'" class="ti ti-whirl"></i>
<i v-else-if="widgetProps.src === 'global'" class="ti ti-world"></i>
<i v-else-if="widgetProps.src === 'list'" class="ti ti-list"></i>
<i v-else-if="widgetProps.src === 'antenna'" class="ti ti-antenna"></i>
</template>
@ -127,7 +127,7 @@ const choose = async (ev) => {
action: () => { setSrc('social'); },
}, {
text: i18n.ts._timelines.global,
icon: 'ti ti-whirl',
icon: 'ti ti-world',
action: () => { setSrc('global'); },
}, antennaItems.length > 0 ? null : undefined, ...antennaItems, listItems.length > 0 ? null : undefined, ...listItems], ev.currentTarget ?? ev.target).then(() => {
menuOpened.value = false;