Ver código fonte

Align Schedule page margins with Join Meetings for consistent profile placement.

Match trailing inset to the shared auth bar and remove extra top padding so content starts at the same offset as the meetings page.

Made-with: Cursor
huzaifahayat12 1 semana atrás
pai
commit
a898d63955
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      meetings_app/ViewController.swift

+ 3 - 3
meetings_app/ViewController.swift

@@ -333,9 +333,9 @@ final class ViewController: NSViewController {
333 333
     private let schedulePageCardSpacing: CGFloat = 20
334 334
     private let schedulePageCardHeight: CGFloat = 182
335 335
     private let schedulePageStackSpacing: CGFloat = 16
336
+    /// Match Join Meetings main content insets so the top auth/profile bar lines up with page edges.
336 337
     private let schedulePageLeadingInset: CGFloat = 28
337
-    /// Tighter than leading so cards/filters use full width; overlay scrollbar avoids a dead right gutter.
338
-    private let schedulePageTrailingInset: CGFloat = 12
338
+    private let schedulePageTrailingInset: CGFloat = 28
339 339
     private var schedulePageScrollObservation: NSObjectProtocol?
340 340
     private weak var schedulePageDateHeadingLabel: NSTextField?
341 341
     private weak var schedulePageFilterDropdown: NSPopUpButton?
@@ -1771,7 +1771,7 @@ private extension ViewController {
1771 1771
         NSLayoutConstraint.activate([
1772 1772
             contentStack.leftAnchor.constraint(equalTo: panel.leftAnchor, constant: schedulePageLeadingInset),
1773 1773
             contentStack.rightAnchor.constraint(equalTo: panel.rightAnchor, constant: -schedulePageTrailingInset),
1774
-            contentStack.topAnchor.constraint(equalTo: panel.topAnchor, constant: 6),
1774
+            contentStack.topAnchor.constraint(equalTo: panel.topAnchor),
1775 1775
             contentStack.bottomAnchor.constraint(equalTo: panel.bottomAnchor, constant: -16),
1776 1776
             header.widthAnchor.constraint(equalTo: contentStack.widthAnchor),
1777 1777
             heading.widthAnchor.constraint(equalTo: contentStack.widthAnchor),