ソースを参照

Stop tracking xcuserdata; ignore .derivedDataBuild

Remove machine-local Xcode scheme data from version control and ignore
.derivedDataBuild alongside other derived data paths.

Tighten dashboard chrome spacing (content stack and sidebar insets, top
inset, greeting margins) and clarify a sidebar width comment.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 3 週間 前
コミット
8cd1892a63
共有3 個のファイルを変更した9 個の追加21 個の削除を含む
  1. 1 0
      .gitignore
  2. 0 14
      App for Indeed.xcodeproj/xcuserdata/mqlmac2.xcuserdatad/xcschemes/xcschememanagement.plist
  3. 8 7
      App for Indeed/Views/DashboardView.swift

+ 1 - 0
.gitignore

@@ -2,6 +2,7 @@
2 2
 .DS_Store
3 3
 DerivedData/
4 4
 .derivedData/
5
+.derivedDataBuild/
5 6
 build/
6 7
 *.xcuserstate
7 8
 xcuserdata/

+ 0 - 14
App for Indeed.xcodeproj/xcuserdata/mqlmac2.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -1,14 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
-<plist version="1.0">
4
-<dict>
5
-	<key>SchemeUserState</key>
6
-	<dict>
7
-		<key>App for Indeed.xcscheme_^#shared#^_</key>
8
-		<dict>
9
-			<key>orderHint</key>
10
-			<integer>0</integer>
11
-		</dict>
12
-	</dict>
13
-</dict>
14
-</plist>

+ 8 - 7
App for Indeed/Views/DashboardView.swift

@@ -139,11 +139,12 @@ final class DashboardView: NSView, NSTextFieldDelegate {
139 139
         layer?.backgroundColor = Theme.pageBackground.cgColor
140 140
 
141 141
         contentStack.orientation = .horizontal
142
-        contentStack.spacing = 20
142
+        contentStack.spacing = 10
143 143
         contentStack.distribution = .fill
144 144
         contentStack.translatesAutoresizingMaskIntoConstraints = false
145 145
         contentStack.alignment = .height
146
-        contentStack.edgeInsets = NSEdgeInsets(top: 24, left: 24, bottom: 24, right: 24)
146
+        // Tighter chrome insets so panels sit closer to the window edges (especially leading / top under the title bar).
147
+        contentStack.edgeInsets = NSEdgeInsets(top: 10, left: 12, bottom: 20, right: 20)
147 148
 
148 149
         chromeContainer.translatesAutoresizingMaskIntoConstraints = false
149 150
         chromeContainer.wantsLayer = true
@@ -159,7 +160,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
159 160
         sidebar.wantsLayer = true
160 161
         sidebar.layer?.backgroundColor = Theme.sidebarBackground.cgColor
161 162
         sidebar.layer?.cornerRadius = 16
162
-        sidebar.edgeInsets = NSEdgeInsets(top: 18, left: 14, bottom: 18, right: 14)
163
+        sidebar.edgeInsets = NSEdgeInsets(top: 16, left: 12, bottom: 16, right: 12)
163 164
         sidebar.translatesAutoresizingMaskIntoConstraints = false
164 165
 
165 166
         mainHost.translatesAutoresizingMaskIntoConstraints = false
@@ -193,7 +194,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
193 194
 
194 195
         let topInset = NSView()
195 196
         topInset.translatesAutoresizingMaskIntoConstraints = false
196
-        topInset.heightAnchor.constraint(equalToConstant: 32).isActive = true
197
+        topInset.heightAnchor.constraint(equalToConstant: 18).isActive = true
197 198
 
198 199
         configureSearchBar()
199 200
 
@@ -278,8 +279,8 @@ final class DashboardView: NSView, NSTextFieldDelegate {
278 279
             jobListingsContainer.leadingAnchor.constraint(equalTo: jobListingsScrollView.contentView.leadingAnchor),
279 280
             jobListingsContainer.widthAnchor.constraint(equalTo: jobListingsScrollView.contentView.widthAnchor),
280 281
 
281
-            greetingLabel.leadingAnchor.constraint(equalTo: mainOverlay.leadingAnchor, constant: 24),
282
-            greetingLabel.trailingAnchor.constraint(equalTo: mainOverlay.trailingAnchor, constant: -24),
282
+            greetingLabel.leadingAnchor.constraint(equalTo: mainOverlay.leadingAnchor, constant: 16),
283
+            greetingLabel.trailingAnchor.constraint(equalTo: mainOverlay.trailingAnchor, constant: -16),
283 284
             subtitleLabel.leadingAnchor.constraint(equalTo: greetingLabel.leadingAnchor),
284 285
             subtitleLabel.trailingAnchor.constraint(equalTo: greetingLabel.trailingAnchor)
285 286
         ])
@@ -1132,7 +1133,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
1132 1133
         upgradeDescription.font = .systemFont(ofSize: 12, weight: .regular)
1133 1134
         upgradeDescription.textColor = Theme.secondaryText
1134 1135
         upgradeDescription.alignment = .center
1135
-        // Sidebar content width is 190pt (218 − edge insets); card must stay within that band.
1136
+        // Sidebar content width is the fixed sidebar width minus horizontal edge insets; card must stay within that band.
1136 1137
         let cardWidth: CGFloat = 186
1137 1138
         let innerContentWidth = cardWidth - 28
1138 1139
         upgradeDescription.preferredMaxLayoutWidth = innerContentWidth