From 721225606fda99e781164b38a51082e3a82523df Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 29 Apr 2025 09:25:16 -0700 Subject: [PATCH] fix: show full text when provided for iconbutton --- AppIconButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppIconButton.qml b/AppIconButton.qml index c61631d..c939362 100644 --- a/AppIconButton.qml +++ b/AppIconButton.qml @@ -8,7 +8,7 @@ Button { font.family: Fonts.dotrice font.bold: true - implicitWidth: Math.min(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding) + implicitWidth: control.text !== "" ? Math.max(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding) : Math.min(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding) implicitHeight: Math.min(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding) required property string source