diff --git a/applets/mediaframe/package/contents/ui/ConfigGeneral.qml b/applets/mediaframe/package/contents/ui/ConfigGeneral.qml --- a/applets/mediaframe/package/contents/ui/ConfigGeneral.qml +++ b/applets/mediaframe/package/contents/ui/ConfigGeneral.qml @@ -19,6 +19,7 @@ import QtQuick 2.7 import QtQuick.Controls 1.5 import QtQuick.Layouts 1.1 +import org.kde.kirigami 2.5 as Kirigami ColumnLayout { id: root @@ -75,7 +76,11 @@ id: comboBox Layout.row: 1 Layout.column: 1 - width: units.gridUnit * 10 + TextMetrics { + id: resizeTextMetrics + text: comboBox.currentText + } + implicitWidth: resizeTextMetrics.width + Kirigami.Units.smallSpacing * 2 + Kirigami.Units.gridUnit * 2 currentIndex: fillModeToIndex(fillMode) model: [ {