Fix wrapping in sync menu

This commit is contained in:
Jaime van Kessel 2022-02-10 10:37:26 +01:00
parent 0932252ca3
commit ddc43446e6

View File

@ -83,6 +83,7 @@ Row // Sync state icon + message
// text is determined by State // text is determined by State
font: UM.Theme.getFont("medium") font: UM.Theme.getFont("medium")
width: contentWidth + UM.Theme.getSize("default_margin").height width: contentWidth + UM.Theme.getSize("default_margin").height
wrapMode: Text.NoWrap
height: contentHeight height: contentHeight
visible: !Cura.API.account.manualSyncEnabled && !Cura.API.account.updatePackagesEnabled visible: !Cura.API.account.manualSyncEnabled && !Cura.API.account.updatePackagesEnabled
} }
@ -94,6 +95,7 @@ Row // Sync state icon + message
color: UM.Theme.getColor("text_link") color: UM.Theme.getColor("text_link")
font: UM.Theme.getFont("medium") font: UM.Theme.getFont("medium")
height: contentHeight height: contentHeight
wrapMode: Text.NoWrap
width: contentWidth + UM.Theme.getSize("default_margin").height width: contentWidth + UM.Theme.getSize("default_margin").height
visible: Cura.API.account.updatePackagesEnabled visible: Cura.API.account.updatePackagesEnabled
@ -113,6 +115,7 @@ Row // Sync state icon + message
text: catalog.i18nc("@button", "Check for account updates") text: catalog.i18nc("@button", "Check for account updates")
color: UM.Theme.getColor("text_link") color: UM.Theme.getColor("text_link")
font: UM.Theme.getFont("medium") font: UM.Theme.getFont("medium")
wrapMode: Text.NoWrap
height: contentHeight height: contentHeight
width: contentWidth + UM.Theme.getSize("default_margin").height width: contentWidth + UM.Theme.getSize("default_margin").height
visible: Cura.API.account.manualSyncEnabled visible: Cura.API.account.manualSyncEnabled