Give more space to text when required

CURA-12224
This way, multi-lines setting names can be properly displayed
This commit is contained in:
Erwan MATHIEU 2025-01-27 15:24:42 +01:00
parent 3b2d0fd8af
commit 2e59a0a009

View file

@ -13,7 +13,7 @@ import "."
Item
{
id: base
height: enabled ? UM.Theme.getSize("section").height + UM.Theme.getSize("narrow_margin").height : 0
height: enabled ? Math.max(UM.Theme.getSize("section").height, label.height) + UM.Theme.getSize("narrow_margin").height : 0
anchors.left: parent.left
anchors.right: parent.right