Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile/tab_switcher): hide icon for new tab

Elian Doranbec7943e058f
diff --git a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx
index 7f80360ee8..c779a58042 100644
--- a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx
+++ b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx
@@ -129,7 +129,7 @@ function Tab({ noteContext, containerRef, selectTab, activeNtxId }: {
}}
>
<header className={colorClass}>
- <Icon icon={iconClass} />
+ {note && <Icon icon={iconClass} />}
<span className="title">{noteContext.note?.title ?? t("tab_row.new_tab")}</span>
<ActionButton
icon="bx bx-x"