Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions ora/Features/Sidebar/Views/ContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ struct ContainerView: View {
}

ScrollView(.vertical, showsIndicators: false) {
VStack(alignment: .leading, spacing: 16) {
if !privacyMode.isPrivate {
VStack(alignment: .leading, spacing: 8) {
if !privacyMode.isPrivate, !pinnedTabs.isEmpty || draggedItem != nil {
PinnedTabsList(
tabs: pinnedTabs,
draggedItem: $draggedItem,
Expand All @@ -66,7 +66,7 @@ struct ContainerView: View {
onMoveToContainer: moveTab,
containers: containers
)
Divider()
if !pinnedTabs.isEmpty { Divider() }
}
NormalTabsList(
tabs: normalTabs,
Expand Down
15 changes: 8 additions & 7 deletions ora/Features/Sidebar/Views/TabList/PinnedTabsList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ struct PinnedTabsList: View {
@Environment(\.theme) var theme

var body: some View {
VStack(spacing: 8) {
Text("Pinned")
.font(.callout)
.foregroundColor(theme.mutedForeground)
.padding(.top, 8)
.frame(maxWidth: .infinity, alignment: .leading)
VStack(spacing: 4) {
if !tabs.isEmpty || draggedItem != nil {
Text("Pinned")
.font(.callout)
.foregroundColor(theme.mutedForeground)
.frame(maxWidth: .infinity, alignment: .leading)
}
if tabs.isEmpty {
EmptyPinnedTabs()
if draggedItem != nil { EmptyPinnedTabs() }
} else {
ForEach(tabs) { tab in
TabItem(
Expand Down