fix(StatusChatInput): 'Unblock' is not vertically aligned in 1-1 chat
`StatusButton` is now used correctly. There are 3 different button variations with preset heights/widths and paddings. The consumer cannot change the height without altering the expected behaviour and display of the button. Button height is now consistent with chat input. Fixes #6298
This commit is contained in:
parent
9b8138a3e6
commit
ee8477ae9b
|
@ -1254,11 +1254,9 @@ Rectangle {
|
||||||
StatusQ.StatusButton {
|
StatusQ.StatusButton {
|
||||||
id: unblockBtn
|
id: unblockBtn
|
||||||
visible: control.isContactBlocked
|
visible: control.isContactBlocked
|
||||||
height: messageInput.height - Style.current.halfPadding
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Style.current.halfPadding
|
anchors.rightMargin: Style.current.halfPadding
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: messageInput.bottom
|
||||||
anchors.bottomMargin: Style.current.padding
|
|
||||||
text: qsTr("Unblock")
|
text: qsTr("Unblock")
|
||||||
type: StatusQ.StatusBaseButton.Type.Danger
|
type: StatusQ.StatusBaseButton.Type.Danger
|
||||||
onClicked: function (event) {
|
onClicked: function (event) {
|
||||||
|
|
Loading…
Reference in New Issue