Skip to content

Commit

Permalink
Fix tabs width resizing glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenecky committed Jan 4, 2025
1 parent 5473b36 commit fc0919a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/TabBar/View/TabBarViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ final class TabBarViewController: NSViewController, TabBarRemoteMessagePresentin
if dividedWidth < TabBarViewItem.Width.minimumSelected {
dividedWidth = (tabsWidth - TabBarViewItem.Width.minimumSelected) / (numberOfItems - 1)
}
return min(TabBarViewItem.Width.maximum, max(minimumWidth, dividedWidth)).rounded()
return min(TabBarViewItem.Width.maximum, max(minimumWidth, dividedWidth))
} else {
return minimumWidth
}
Expand Down

0 comments on commit fc0919a

Please sign in to comment.