Skip to content

Commit

Permalink
Fix a bug that caused a single pinned tabs to expand in full screen m…
Browse files Browse the repository at this point in the history
…ode (#2749)

Task/Issue URL: https://app.asana.com/0/1177771139624306/1205566351996167/f

**Description**:
This PR fixes the pinned tab width when the application is in full screen. Setting the maxWidth on the PinnedTabView seems to fix the issue.
  • Loading branch information
alessandroboron authored May 14, 2024
1 parent a2de82d commit 1cf47c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/PinnedTabs/View/PinnedTabsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct PinnedTabsView: View {
ForEach(model.items) { item in
PinnedTabView(model: item, showsHover: draggedTab == nil)
.environmentObject(model)
.frame(maxHeight: PinnedTabView.Const.dimension)
.frame(maxWidth: PinnedTabView.Const.dimension, maxHeight: PinnedTabView.Const.dimension)
}
}
.frame(minHeight: PinnedTabView.Const.dimension)
Expand Down

0 comments on commit 1cf47c4

Please sign in to comment.