From 05fa1ef2fbfaef945f7c876913f2d5e508b4c333 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 31 Jan 2026 17:04:19 +0200 Subject: [PATCH] feat(mobile/tab_switcher): clip note title --- apps/client/src/widgets/mobile_widgets/TabSwitcher.css | 10 ++++++++++ apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/mobile_widgets/TabSwitcher.css b/apps/client/src/widgets/mobile_widgets/TabSwitcher.css index 0540f2b54..c281c04d9 100644 --- a/apps/client/src/widgets/mobile_widgets/TabSwitcher.css +++ b/apps/client/src/widgets/mobile_widgets/TabSwitcher.css @@ -12,10 +12,20 @@ .tab-card { background: var(--card-background-color); border-radius: 1em; + min-width: 0; header { padding: 0.5em 1em; border-bottom: 1px solid var(--main-border-color); + display: flex; + overflow: hidden; + + .title { + overflow: hidden; + text-overflow: ellipsis; + text-wrap: nowrap; + font-size: 0.9em; + } } .tab-preview { diff --git a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx index c32b74228..4ce8ed4bf 100644 --- a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx +++ b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx @@ -62,7 +62,9 @@ function Tab({ noteContext }: { return (
-
{noteContext.note?.title}
+
+ {noteContext.note?.title} +
{note &&