diff --git a/readeck.xcodeproj/project.pbxproj b/readeck.xcodeproj/project.pbxproj index 3d0dd19..f54b79d 100644 --- a/readeck.xcodeproj/project.pbxproj +++ b/readeck.xcodeproj/project.pbxproj @@ -435,7 +435,7 @@ buildSettings = { CODE_SIGN_ENTITLEMENTS = URLShare/URLShare.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 13; DEVELOPMENT_TEAM = 8J69P655GN; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = URLShare/Info.plist; @@ -468,7 +468,7 @@ buildSettings = { CODE_SIGN_ENTITLEMENTS = URLShare/URLShare.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 13; DEVELOPMENT_TEAM = 8J69P655GN; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = URLShare/Info.plist; diff --git a/readeck/UI/BookmarkDetail/BookmarkLabelsView.swift b/readeck/UI/BookmarkDetail/BookmarkLabelsView.swift index 77fcb53..18c39b0 100644 --- a/readeck/UI/BookmarkDetail/BookmarkLabelsView.swift +++ b/readeck/UI/BookmarkDetail/BookmarkLabelsView.swift @@ -16,7 +16,6 @@ struct BookmarkLabelsView: View { var body: some View { NavigationView { VStack(spacing: 12) { - searchSection availableLabelsSection Spacer() } @@ -53,59 +52,7 @@ struct BookmarkLabelsView: View { // MARK: - View Components - @ViewBuilder - private var searchSection: some View { - VStack(spacing: 8) { - searchField - customTagSuggestion - } - .padding(.horizontal) - } - @ViewBuilder - private var searchField: some View { - TextField("Search or add new tag...", text: $viewModel.searchText) - .textFieldStyle(RoundedBorderTextFieldStyle()) - .onSubmit { - Task { - await viewModel.addLabel(to: bookmarkId, label: viewModel.searchText) - } - } - } - - @ViewBuilder - private var customTagSuggestion: some View { - if !viewModel.searchText.isEmpty && - !viewModel.filteredLabels.contains(where: { $0.name.lowercased() == viewModel.searchText.lowercased() }) { - HStack { - Text("Add new tag:") - .font(.caption) - .foregroundColor(.secondary) - Text(viewModel.searchText) - .font(.caption) - .fontWeight(.medium) - Spacer() - Button(action: { - Task { - await viewModel.addLabel(to: bookmarkId, label: viewModel.searchText) - } - }) { - HStack(spacing: 6) { - Image(systemName: "plus.circle.fill") - .font(.caption) - Text("Add") - .font(.caption) - .fontWeight(.medium) - } - } - .foregroundColor(.accentColor) - } - .padding(.horizontal, 12) - .padding(.vertical, 12) - .background(Color.accentColor.opacity(0.1)) - .cornerRadius(10) - } - } @ViewBuilder private var availableLabelsSection: some View { @@ -132,6 +79,7 @@ struct BookmarkLabelsView: View { } } ) + .padding(.horizontal) } } diff --git a/readeck/UI/Components/TagManagementView.swift b/readeck/UI/Components/TagManagementView.swift index 1812e8a..8a2497f 100644 --- a/readeck/UI/Components/TagManagementView.swift +++ b/readeck/UI/Components/TagManagementView.swift @@ -93,18 +93,18 @@ struct TagManagementView: View { !selectedLabelsSet.contains(searchText.wrappedValue) { HStack { Text("Add new tag:") - .font(.caption) + .font(.subheadline) .foregroundColor(.secondary) Text(searchText.wrappedValue) - .font(.caption) + .font(.subheadline) .fontWeight(.medium) Spacer() Button(action: onAddCustomTag) { HStack(spacing: 6) { Image(systemName: "plus.circle.fill") - .font(.caption) + .font(.subheadline) Text("Add") - .font(.caption) + .font(.subheadline) .fontWeight(.medium) } }