From 77a8b7aaf1583cce6c00a4933e1c50e739b0c967 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 21 Jun 2021 18:53:19 +0200 Subject: [PATCH] nav: banner add stretch to fix label size old-commit-hash: 6ca0861360cc16849dbbd359593ee9374ab160ba --- selfdrive/ui/qt/maps/map.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 970678d65..d2e90e62c 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -467,7 +467,7 @@ MapInstructions::MapInstructions(QWidget * parent) : QWidget(parent) { QVBoxLayout *layout = new QVBoxLayout(w); distance = new QLabel; - distance->setStyleSheet(R"(font-size: 75px; )"); + distance->setStyleSheet(R"(font-size: 75px;)"); layout->addWidget(distance); primary = new QLabel; @@ -483,6 +483,8 @@ MapInstructions::MapInstructions(QWidget * parent) : QWidget(parent) { lane_layout = new QHBoxLayout; layout->addLayout(lane_layout); + layout->addStretch(); // Make sure the word-wrapped labels are as small as possible + main_layout->addWidget(w); }