Move timeline around, sensible icons

This commit is contained in:
Eris 2022-08-11 00:02:57 +00:00
parent 1a7758fcd1
commit b6f197017f

View file

@ -139,16 +139,10 @@ const headerTabs = $computed(() => [{
icon: 'fas fa-user-group', icon: 'fas fa-user-group',
iconOnly: true, iconOnly: true,
}] : []), }] : []),
...(isRecommendedTimelineAvailable ? [{
key: 'recommended',
title: i18n.ts._timelines.recommended,
icon: 'fas fa-signs-post',
iconOnly: true,
}] : []),
...(isLocalTimelineAvailable ? [{ ...(isLocalTimelineAvailable ? [{
key: 'social', key: 'social',
title: i18n.ts._timelines.social, title: i18n.ts._timelines.social,
icon: 'fas fa-handshake-simple', icon: 'fas fa-share-alt',
iconOnly: true, iconOnly: true,
}] : []), }] : []),
...(isGlobalTimelineAvailable ? [{ ...(isGlobalTimelineAvailable ? [{
@ -156,11 +150,17 @@ const headerTabs = $computed(() => [{
title: i18n.ts._timelines.global, title: i18n.ts._timelines.global,
icon: 'fas fa-globe', icon: 'fas fa-globe',
iconOnly: true, iconOnly: true,
}] : []),
...(isRecommendedTimelineAvailable ? [{
key: 'recommended',
title: i18n.ts._timelines.recommended,
icon: 'fas fa-comment-medical',
iconOnly: true,
}] : [])]); }] : [])]);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.ts.timeline, title: i18n.ts.timeline,
icon: src === 'local' ? 'fas fa-user-group' : src === 'social' ? 'fas fa-handshake-simple' : src === 'recommended' ? 'fas fa-signs-post' : src === 'global' ? 'fas fa-globe' : 'fas fa-home', icon: src === 'local' ? 'fas fa-user-group' : src === 'social' ? 'fas fa-share-alt' : src === 'recommended' ? 'fas fa-comment-medical' : src === 'global' ? 'fas fa-globe' : 'fas fa-home',
}))); })));
</script> </script>