Skip to content

Commit

Permalink
fix(StatusTooltip): long text goes out of bounds
Browse files Browse the repository at this point in the history
Fixes #9918
  • Loading branch information
caybro committed Mar 17, 2023
1 parent 411961a commit 8aa8b8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/StatusQ/sandbox/controls/Controls.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ColumnLayout {
text: "Hover me!"
StatusToolTip {
visible: parent.hovered
text: "Top"
text: "http://thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com%2Fwearejustdoingthistobestupidnowsincethiscangoonforeverandeverandeverbutitstilllookskindaneatinthebrowsereventhoughitsabigwasteoftimeandenergyandhasnorealpointbutwehadtodoitanyways.html&ei=40egUo2MGI3xoATQtIKwDQ&usg=AFQjCNHbBa5Fk4YutdUOj_D8IwpJLu7hGw&sig2=8P4ew1Yie72Ps_OQ-L5cXw&bvm=bv.57155469%2Cd.cGU"
}
StatusToolTip {
visible: parent.hovered
Expand Down
3 changes: 2 additions & 1 deletion ui/StatusQ/src/StatusQ/Controls/StatusToolTip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ ToolTip {
text: statusToolTip.text
color: Theme.palette.white
linkColor: Theme.palette.white
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
font.pixelSize: 13
font.weight: Font.Medium
horizontalAlignment: Text.AlignHCenter
bottomPadding: 8
textFormat: Text.RichText
elide: Text.ElideRight
}
}

0 comments on commit 8aa8b8b

Please sign in to comment.