Skip to content

Commit

Permalink
refactor: update LibraryView and ItemCategoryBarView for improved lay…
Browse files Browse the repository at this point in the history
…out and spacing

- Added leading padding to the title in LibraryView for better alignment.
- Adjusted spacing in ItemCategoryBarView to enhance layout responsiveness.
- Removed fixed horizontal padding to allow for more flexible item arrangement.
  • Loading branch information
lcandy2 committed Jan 21, 2025
1 parent 2fea1f3 commit 5fe0a10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions NeoDB/NeoDB.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = NeoDB/NeoDB.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 196;
CURRENT_PROJECT_VERSION = 218;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"NeoDB/Preview Content\"";
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
Expand All @@ -489,7 +489,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 12;
MARKETING_VERSION = 0.7.2;
MARKETING_VERSION = 0.7.4;
OTHER_LDFLAGS = (
"-Xlinker",
"-interposable",
Expand All @@ -514,7 +514,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = NeoDB/NeoDB.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 196;
CURRENT_PROJECT_VERSION = 218;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"NeoDB/Preview Content\"";
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
Expand All @@ -537,7 +537,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 12;
MARKETING_VERSION = 0.7.2;
MARKETING_VERSION = 0.7.4;
PRODUCT_BUNDLE_IDENTIFIER = app.neodb;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct ItemCategoryBarView: View {
ResizableTabButton(.allItems)
.id(ItemCategory.shelfAvailable.allItems)

HStack(spacing: activeTab == .allItems ? -12 : 8) {
HStack(spacing: activeTab == .allItems ? -8 : 8) {
ForEach(
ItemCategory.shelfAvailable.allCases.filter({
$0 != .allItems
Expand All @@ -32,7 +32,7 @@ struct ItemCategoryBarView: View {
}
}
}
.padding(.horizontal, 15)
.padding(.horizontal)
.frame(minWidth: geometry.size.width)
}
.onAppear {
Expand Down
1 change: 1 addition & 0 deletions NeoDB/NeoDB/Views/Library/LibraryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct LibraryView: View {
Text("Library")
.font(.headline)
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.leading, 2)
}
}
.ignoresSafeArea(edges: .bottom)
Expand Down

0 comments on commit 5fe0a10

Please sign in to comment.