Skip to content

Commit

Permalink
Merge pull request #3554 from MerginMaps/fix/toolbarElide
Browse files Browse the repository at this point in the history
Fixing text wrapping in MMToolbar
  • Loading branch information
tomasMizera authored Aug 9, 2024
2 parents 6ef7f74 + 5ba3100 commit ce2e752
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/qml/components/private/MMToolbarShortButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ Item {
Text {
id: text

width: parent.width
text: root.text
color: root.useDisabledVisual ? root.iconColorDisabled : root.iconColor
font: __style.t4
font: lineCount === 1 ? __style.t4 : __style.t5
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: icon.bottom
anchors.topMargin: root.buttonSpacing
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideMiddle
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
}

MouseArea {
Expand Down

0 comments on commit ce2e752

Please sign in to comment.