|
|
@@ -320,7 +320,10 @@ final class DashboardView: NSView {
|
|
|
row.topAnchor.constraint(equalTo: rowHost.topAnchor, constant: 8),
|
|
|
row.bottomAnchor.constraint(equalTo: rowHost.bottomAnchor, constant: -8)
|
|
|
])
|
|
|
+ rowHost.setContentHuggingPriority(.defaultLow, for: .horizontal)
|
|
|
sidebar.addArrangedSubview(rowHost)
|
|
|
+ let sidebarHorizontalInset = sidebar.edgeInsets.left + sidebar.edgeInsets.right
|
|
|
+ rowHost.widthAnchor.constraint(equalTo: sidebar.widthAnchor, constant: -sidebarHorizontalInset).isActive = true
|
|
|
}
|
|
|
|
|
|
let sidebarBottomSpacer = NSView()
|