Skip to content

Commit

Permalink
qml: fix text clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Sep 4, 2024
1 parent 2bad387 commit 8390237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/controls2_515/Favorites.qml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ MapPage {
color: styleMap.view.primaryColor
font.pixelSize: units.fs("medium")
font.bold: true
wrapMode: Text.WordWrap
maximumLineCount: 2
text: label
elide: Text.ElideRight
}
Label {
font.pixelSize: units.fs("x-small")
color: styleMap.view.secondaryColor
text: Converter.readableCoordinatesGeocaching(lat, lon)
clip: true
}
}
}
Expand Down
1 change: 1 addition & 0 deletions gui/controls2_515/TrackCollection.qml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ MapPage {
height: visible ? implicitHeight : 0
color: styleMap.view.secondaryColor
font.pixelSize: units.fs("x-small")
clip: true
text: fileModel.parsing ? (Math.round(fileModel.progress * 1000) / 10).toFixed(1) + " %"
: timestamp.toLocaleDateString() + " " + timestamp.toLocaleTimeString()
}
Expand Down

0 comments on commit 8390237

Please sign in to comment.