Compose tweaks

This commit is contained in:
Shadowfacts 2025-03-03 19:46:04 -05:00
parent dcd9c0b424
commit 874d2588f8
4 changed files with 6 additions and 4 deletions

View File

@ -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())
}
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)