Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions packages/app-gnome/src/views/main.window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,25 @@ template $MainWindow: Adw.ApplicationWindow {
hexpand: true;
vexpand: true;

// Center column (Editor)
Box centerColumn {
// Center column (Editor) with the run toolbar anchored to
// its edge, so it tracks the editor across all breakpoints
// and text directions instead of relying on a fixed margin
Overlay centerOverlay {
hexpand: true;
vexpand: true;

child: Box centerColumn {
hexpand: true;
vexpand: true;
};

[overlay]
$Toolbar runToolbar {
halign: end;
valign: start;
margin-end: 12;
margin-top: 12;
}
}

Separator {}
Expand Down Expand Up @@ -229,13 +244,6 @@ template $MainWindow: Adw.ApplicationWindow {
margin-bottom: 0;
}

[overlay]
$Toolbar runToolbar {
halign: end;
valign: start;
margin-end: 360;
margin-top: 46;
}
};

[bottom]
Expand Down
Loading