fix(frontend): モバイル環境でタイムラインの上段メニューに空のボタンが追加されている問題を修正 (MisskeyIO#224)

This commit is contained in:
まっちゃとーにゅ 2023-11-09 00:03:34 +09:00 committed by GitHub
parent 0ecda3d386
commit 29f6267aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -122,13 +122,14 @@ function focus(): void {
tlComponent.focus(); tlComponent.focus();
} }
const headerActions = $computed(() => [ const headerActions = $computed(() => deviceKind === 'desktop'
...[deviceKind === 'desktop' ? { ? [{
icon: 'ti ti-refresh', icon: 'ti ti-refresh',
text: i18n.ts.reload, text: i18n.ts.reload,
handler: () => { tlComponent.reloadTimeline(); }, handler: () => { tlComponent.reloadTimeline(); },
} : {}], }]
]); : []
);
const headerTabs = $computed(() => [{ const headerTabs = $computed(() => [{
key: 'home', key: 'home',