Fix spacing on toolbar when visibility and local-only items visible

This commit is contained in:
Shadowfacts 2022-12-25 10:03:07 -05:00
parent 967bff063b
commit e676075d5b
1 changed files with 2 additions and 2 deletions

View File

@ -36,14 +36,14 @@ struct ComposeToolbar: View {
MenuPicker(selection: $draft.visibility, options: Self.visibilityOptions, buttonStyle: .iconOnly)
// // the button has a bunch of extra space by default, but combined with what we add it's too much
// .padding(.horizontal, -8)
.padding(.horizontal, -8)
if mastodonController.instanceFeatures.localOnlyPosts {
MenuPicker(selection: $draft.localOnly, options: [
.init(value: true, title: "Local-only", subtitle: "Only \(mastodonController.accountInfo!.instanceURL.host!)", image: UIImage(named: "link.broken")),
.init(value: false, title: "Federated", image: UIImage(systemName: "link"))
], buttonStyle: .iconOnly)
// .padding(.horizontal, -8)
.padding(.horizontal, -8)
}
if let currentInput = uiState.currentInput, currentInput.toolbarElements.contains(.emojiPicker) {