forked from shadowfacts/Tusker
Fix spacing on toolbar when visibility and local-only items visible
This commit is contained in:
parent
967bff063b
commit
e676075d5b
|
@ -36,14 +36,14 @@ struct ComposeToolbar: View {
|
||||||
|
|
||||||
MenuPicker(selection: $draft.visibility, options: Self.visibilityOptions, buttonStyle: .iconOnly)
|
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
|
// // 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 {
|
if mastodonController.instanceFeatures.localOnlyPosts {
|
||||||
MenuPicker(selection: $draft.localOnly, options: [
|
MenuPicker(selection: $draft.localOnly, options: [
|
||||||
.init(value: true, title: "Local-only", subtitle: "Only \(mastodonController.accountInfo!.instanceURL.host!)", image: UIImage(named: "link.broken")),
|
.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"))
|
.init(value: false, title: "Federated", image: UIImage(systemName: "link"))
|
||||||
], buttonStyle: .iconOnly)
|
], buttonStyle: .iconOnly)
|
||||||
// .padding(.horizontal, -8)
|
.padding(.horizontal, -8)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let currentInput = uiState.currentInput, currentInput.toolbarElements.contains(.emojiPicker) {
|
if let currentInput = uiState.currentInput, currentInput.toolbarElements.contains(.emojiPicker) {
|
||||||
|
|
Loading…
Reference in New Issue