Skip to content

Commit

Permalink
Wrap button rows for narrow windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarrk committed Jun 23, 2024
1 parent 6a568e7 commit e729596
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions src/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ ApplicationWindow {
return bytes.toString().slice(0, 4) + prefix[order] + 'B'
}

ColumnLayout {
Column {
id: statusBar
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: 10
spacing: 10

Expand Down Expand Up @@ -88,7 +89,12 @@ ApplicationWindow {
}
}

RowLayout {
Flow {
anchors.left: parent.left
anchors.right: parent.right

spacing: 10

Button {
text: qsTr("Save data")
enabled: !appData.logger.savingNow
Expand Down Expand Up @@ -123,9 +129,14 @@ ApplicationWindow {
}
}

RowLayout {
Flow {
visible: saveLimitedTime.checked

anchors.left: parent.left
anchors.right: parent.right

spacing: 10

Text {
text: qsTr("Save time (in seconds):")
enabled: !appData.logger.savingNow
Expand Down
2 changes: 1 addition & 1 deletion src/NetworkView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Item {
&& hovered

text: (model.display
?? "") + (highlight ? " (click to edit)" : "")
?? "") + (highlight ? qsTr(" (click to edit)") : "")
color: model.decoration ?? palette.text
font.bold: highlight
horizontalAlignment: (model.textAlign ?? Text.AlignLeft)
Expand Down

0 comments on commit e729596

Please sign in to comment.