1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-25 16:23:30 +01:00

fix: menu button too small issue. resolve #235

This commit is contained in:
CMK 2021-08-05 16:30:43 +08:00
parent 20c9cd709f
commit a95bd7c732

View File

@ -100,6 +100,8 @@ extension ActionToolbarContainer {
button.expandEdgeInsets = UIEdgeInsets(top: -10, left: -10, bottom: -10, right: -10)
button.setInsets(forContentPadding: .zero, imageTitlePadding: style.buttonTitleImagePadding)
}
// add more expand for menu button
moreButton.expandEdgeInsets = UIEdgeInsets(top: -10, left: -20, bottom: -10, right: -20)
let replyImage = UIImage(systemName: "arrowshape.turn.up.left.fill", withConfiguration: UIImage.SymbolConfiguration(pointSize: 17, weight: .ultraLight))!.withRenderingMode(.alwaysTemplate)
let reblogImage = UIImage(systemName: "arrow.2.squarepath", withConfiguration: UIImage.SymbolConfiguration(pointSize: 17, weight: .bold))!.withRenderingMode(.alwaysTemplate)