Trim Roadname UI to 30 chars

This commit is contained in:
nayan
2025-10-13 11:04:18 -04:00
parent 7e03277962
commit 5b7bbfa82d
+1
View File
@@ -51,6 +51,7 @@ void HudRendererSP::updateState(const UIState &s) {
roadName = s.scene.road_name;
if (sm.updated("liveMapDataSP")) {
roadNameStr = QString::fromStdString(lmd.getRoadName());
if (roadNameStr.length() > 30) roadNameStr = roadNameStr.left(30).append("...");
speedLimitAheadValid = lmd.getSpeedLimitAheadValid();
speedLimitAhead = lmd.getSpeedLimitAhead() * speedConv;
speedLimitAheadDistance = lmd.getSpeedLimitAheadDistance();