Kaynağa Gözat

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 3 ay önce
ebeveyn
işleme
a898d63955
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      meetings_app/ViewController.swift

+ 3 - 3
meetings_app/ViewController.swift

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