|
|
@@ -1753,6 +1753,7 @@ class ViewController: NSViewController {
|
|
1753
|
1753
|
row.spacing = 6
|
|
1754
|
1754
|
row.translatesAutoresizingMaskIntoConstraints = false
|
|
1755
|
1755
|
gridStack.addArrangedSubview(row)
|
|
|
1756
|
+ row.widthAnchor.constraint(equalTo: gridStack.widthAnchor).isActive = true
|
|
1756
|
1757
|
|
|
1757
|
1758
|
for weekday in 0..<7 {
|
|
1758
|
1759
|
let cellIndex = (week * 7) + weekday
|
|
|
@@ -3391,7 +3392,7 @@ class ViewController: NSViewController {
|
|
3391
|
3392
|
schedulerCalendarTopRow.distribution = .fill
|
|
3392
|
3393
|
schedulerCalendarTopRow.spacing = 10
|
|
3393
|
3394
|
|
|
3394
|
|
- let schedulerConnectLabel = makeLabel("Connect calendar", size: 18, color: accentBlue, weight: .semibold, centered: false)
|
|
|
3395
|
+ let schedulerConnectLabel = makeLabel("Zoom calendar", size: 18, color: accentBlue, weight: .semibold, centered: false)
|
|
3395
|
3396
|
let schedulerPlusButton = NSButton(title: "", target: nil, action: nil)
|
|
3396
|
3397
|
schedulerPlusButton.isBordered = false
|
|
3397
|
3398
|
schedulerPlusButton.bezelStyle = .shadowlessSquare
|
|
|
@@ -3422,7 +3423,8 @@ class ViewController: NSViewController {
|
|
3422
|
3423
|
let schedulerWeekdaysRow = NSStackView()
|
|
3423
|
3424
|
schedulerWeekdaysRow.orientation = .horizontal
|
|
3424
|
3425
|
schedulerWeekdaysRow.distribution = .fillEqually
|
|
3425
|
|
- schedulerWeekdaysRow.spacing = 4
|
|
|
3426
|
+ // Match date-row spacing so each date column aligns under weekday labels.
|
|
|
3427
|
+ schedulerWeekdaysRow.spacing = 6
|
|
3426
|
3428
|
let weekdaySymbols = ["S", "M", "T", "W", "T", "F", "S"]
|
|
3427
|
3429
|
for symbol in weekdaySymbols {
|
|
3428
|
3430
|
let weekdayLabel = makeLabel(symbol, size: 12, color: mutedText, weight: .medium, centered: true)
|
|
|
@@ -3432,6 +3434,7 @@ class ViewController: NSViewController {
|
|
3432
|
3434
|
let schedulerCalendarGrid = NSStackView()
|
|
3433
|
3435
|
schedulerCalendarGrid.orientation = .vertical
|
|
3434
|
3436
|
schedulerCalendarGrid.distribution = .fillEqually
|
|
|
3437
|
+ schedulerCalendarGrid.alignment = .leading
|
|
3435
|
3438
|
schedulerCalendarGrid.spacing = 6
|
|
3436
|
3439
|
|
|
3437
|
3440
|
let schedulerRightTopRow = NSStackView()
|