Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ struct WorkspaceNavigationRow: View {
@State private var isConfirmingClose = false

var body: some View {
WorkspaceRow(
workspace: workspace,
connectionStatus: connectionStatus,
isSelected: navigationStyle == .sidebar && isSelected,
wrapWorkspaceTitles: wrapWorkspaceTitles,
previewLineLimit: previewLineLimit
)
rowContent
.onTapGesture {
selectWorkspace(workspace.id)
}
Expand Down Expand Up @@ -89,6 +83,30 @@ struct WorkspaceNavigationRow: View {
}
}

private var rowContent: some View {
HStack(alignment: .center, spacing: 8) {
WorkspaceRow(
workspace: workspace,
connectionStatus: connectionStatus,
isSelected: navigationStyle == .sidebar && isSelected,
wrapWorkspaceTitles: wrapWorkspaceTitles,
previewLineLimit: previewLineLimit
)
.layoutPriority(1)

// NavigationLink(value:) restores the system disclosure row, but in
// this List it prevents swipe/context delete confirmation from
// presenting reliably. Keep the manual tap path and draw the
// compact-stack affordance explicitly.
if navigationStyle == .push {
Image(systemName: "chevron.forward")
.font(.footnote.weight(.semibold))
.foregroundStyle(.tertiary)
.accessibilityHidden(true)
}
}
}

@ViewBuilder
private var contextMenu: some View {
if let setPinned {
Expand Down
Loading