Skip to content

Commit

Permalink
fix: font combobox displays incomplete font names
Browse files Browse the repository at this point in the history
Optimize the width of the dropdown menu to display as fully as possible, and add a logic to display tooltips for names that are not fully displayed in the subsequent dtk

pms: TASK-368711
  • Loading branch information
mhduiy authored and deepin-bot[bot] committed Feb 27, 2025
1 parent fec8e6d commit 72de43b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin-personalization/qml/FontCombobox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ D.ComboBox {
id: control
flat: true
property string visibleRole
implicitWidth: Math.max(DS.Style.control.implicitWidth(control), 300)

displayText: {
if (currentIndex < 0 || currentIndex >= model.count) {
Expand Down

0 comments on commit 72de43b

Please sign in to comment.