Fix too large clickable area for author info in package card

CURA-8588
This commit is contained in:
Jaime van Kessel 2022-01-03 11:20:27 +01:00
parent 89c82964c3
commit 60e6d7bcae

View file

@ -135,21 +135,23 @@ Item
} }
// clickable author name // clickable author name
Cura.TertiaryButton Item
{ {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: authorBy.height implicitHeight: authorBy.height
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignTop
Cura.TertiaryButton
{
text: packageData.authorName
textFont: UM.Theme.getFont("default_bold")
textColor: UM.Theme.getColor("text") // override normal link color
leftPadding: 0
rightPadding: 0
iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true
text: packageData.authorName onClicked: Qt.openUrlExternally(packageData.authorInfoUrl)
textFont: UM.Theme.getFont("default_bold") }
textColor: UM.Theme.getColor("text") // override normal link color
leftPadding: 0
rightPadding: 0
iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true
onClicked: Qt.openUrlExternally(packageData.authorInfoUrl)
} }
ManageButton ManageButton