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