Compose tweaks
This commit is contained in:
parent
dcd9c0b424
commit
874d2588f8
@ -162,6 +162,7 @@ private struct AutocompleteEmojiButton: View {
|
||||
}
|
||||
.accessibilityLabel(emoji.shortcode)
|
||||
.frame(height: 30)
|
||||
.hoverEffect()
|
||||
.padding(.vertical, 7)
|
||||
}
|
||||
}
|
||||
@ -182,5 +183,7 @@ private struct ToggleExpandedButton: View {
|
||||
}
|
||||
.accessibilityLabel(expanded ? "Collapse" : "Expand")
|
||||
.frame(width: 20, height: 20)
|
||||
.hoverEffect()
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
}
|
||||
|
@ -241,8 +241,6 @@ private struct FormatButtons: View {
|
||||
let input,
|
||||
input.toolbarElements.contains(.formattingButtons),
|
||||
contentType != .plain {
|
||||
|
||||
Spacer()
|
||||
ForEach(StatusFormat.allCases) { format in
|
||||
FormatButton(format: format, input: input)
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ struct DraftContentEditor: View {
|
||||
CharactersRemaining(draft: draft)
|
||||
.padding(.trailing, 6)
|
||||
}
|
||||
.padding([.horizontal, .bottom], 4)
|
||||
}
|
||||
.composePlatterBackground()
|
||||
}
|
||||
@ -117,6 +118,7 @@ private struct TogglePollButton: View {
|
||||
}
|
||||
.buttonStyle(LanguageButtonStyle())
|
||||
.disabled(disabled)
|
||||
.hoverEffect(.lift)
|
||||
.animation(.linear(duration: 0.2), value: disabled)
|
||||
.animation(.linear(duration: 0.2), value: draft.pollEnabled)
|
||||
}
|
||||
|
@ -69,8 +69,7 @@ struct LanguagePicker: View {
|
||||
Text((languageCode.wrappedValue.identifier(.alpha2) ?? languageCode.wrappedValue.identifier).uppercased())
|
||||
}
|
||||
.accessibilityLabel("Post Language")
|
||||
.padding(5)
|
||||
.hoverEffect()
|
||||
.hoverEffect(.lift)
|
||||
.sheet(isPresented: $isShowingSheet) {
|
||||
NavigationStack {
|
||||
LanguagePickerList(languageCode: languageCode, hasChangedSelection: $hasChangedSelection, isPresented: $isShowingSheet)
|
||||
|
Loading…
x
Reference in New Issue
Block a user