Browse Source

Fix profile page sections collapsing to the right.

Update profile layout constraints and width recalculation so personal information, education, and related form blocks stay full-width and left-aligned across window sizes.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 3 weeks ago
parent
commit
d2d4f852a6
2 changed files with 906 additions and 27 deletions
  1. 2 2
      App for Indeed/Views/DashboardView.swift
  2. 904 25
      App for Indeed/Views/MyProfilePageView.swift

+ 2 - 2
App for Indeed/Views/DashboardView.swift

@@ -1344,8 +1344,8 @@ final class DashboardView: NSView, NSTextFieldDelegate {
1344 1344
         myProfilePageView.translatesAutoresizingMaskIntoConstraints = false
1345 1345
         profilePageContainer.addSubview(myProfilePageView)
1346 1346
         NSLayoutConstraint.activate([
1347
-            myProfilePageView.leadingAnchor.constraint(equalTo: profilePageContainer.leadingAnchor),
1348
-            myProfilePageView.trailingAnchor.constraint(equalTo: profilePageContainer.trailingAnchor),
1347
+            myProfilePageView.leftAnchor.constraint(equalTo: profilePageContainer.leftAnchor),
1348
+            myProfilePageView.rightAnchor.constraint(equalTo: profilePageContainer.rightAnchor),
1349 1349
             myProfilePageView.topAnchor.constraint(equalTo: profilePageContainer.topAnchor),
1350 1350
             myProfilePageView.bottomAnchor.constraint(equalTo: profilePageContainer.bottomAnchor)
1351 1351
         ])

File diff suppressed because it is too large
+ 904 - 25
App for Indeed/Views/MyProfilePageView.swift