From b6adf6b1df6c88d9dfdf29f3e779d6761bd4d8a0 Mon Sep 17 00:00:00 2001 From: Kaede Akino Date: Sun, 4 Oct 2026 01:31:20 +0800 Subject: [PATCH] fix(ios): keep workspace unread dot within title row --- .../Workspaces/MobileWorkspaceListView.swift | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/TFI/Features/Workspaces/MobileWorkspaceListView.swift b/TFI/Features/Workspaces/MobileWorkspaceListView.swift index d03a01c3..2e4c288d 100644 --- a/TFI/Features/Workspaces/MobileWorkspaceListView.swift +++ b/TFI/Features/Workspaces/MobileWorkspaceListView.swift @@ -145,7 +145,15 @@ struct MobileWorkspaceListView: View { badgeStyle: .card(background: Color(uiColor: .systemBackground), pulses: false) ) VStack(alignment: .leading, spacing: 2) { - Text(item.descriptor.title).foregroundStyle(.primary).lineLimit(1) + HStack(spacing: MobileWorkspaceListMetrics.rowSpacing) { + Text(item.descriptor.title) + .foregroundStyle(.primary) + .lineLimit(1) + .frame(maxWidth: .infinity, alignment: .leading) + if scene.workspaceSession.unreadCount(for: item.id) > 0 { + NotificationUnreadDot() + } + } HStack(alignment: .center, spacing: 12) { Text(item.loginAddress) .font(.caption.monospaced()) @@ -157,9 +165,6 @@ struct MobileWorkspaceListView: View { } } .frame(maxWidth: .infinity, alignment: .leading) - if scene.workspaceSession.unreadCount(for: item.id) > 0 { - NotificationUnreadDot() - } } .frame(maxWidth: .infinity, alignment: .leading) .contentShape(.rect)