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