Limit the width of a user's QR code
This fixes the lopsided layout in the user details dialog.
This commit is contained in:
@@ -75,6 +75,8 @@ Kirigami.Dialog {
|
|||||||
QQC2.AbstractButton {
|
QQC2.AbstractButton {
|
||||||
Layout.minimumHeight: avatar.height * 0.75
|
Layout.minimumHeight: avatar.height * 0.75
|
||||||
Layout.maximumHeight: avatar.height * 1.5
|
Layout.maximumHeight: avatar.height * 1.5
|
||||||
|
Layout.maximumWidth: avatar.height * 1.5
|
||||||
|
|
||||||
contentItem: Barcode {
|
contentItem: Barcode {
|
||||||
id: barcode
|
id: barcode
|
||||||
barcodeType: Barcode.QRCode
|
barcodeType: Barcode.QRCode
|
||||||
|
|||||||
Reference in New Issue
Block a user