mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
nav: banner add stretch to fix label size
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user