Added a back button for mobile

This commit is contained in:
2022-12-21 20:17:04 -08:00
parent bf6dfd1919
commit a768f4732e
3 changed files with 38 additions and 9 deletions

View File

@@ -55,21 +55,24 @@ Adw.ApplicationWindow mainWindow {
Gtk.ListBox searchResults {}
}
Adw.Clamp {
Adw.Clamp detailsClamp {
width-request: 300;
maximum-size: 450;
tightening-threshold: 400;
Gtk.Label seeDetailsText {
hexpand: true;
label: "Select a result to see details";
}
Gtk.Box detailsBox {
orientation: vertical;
visible: false;
margin-start: 14;
margin-end: 14;
Gtk.Button detailsBack {
visible: false;
hexpand: false;
label: "Back to results";
margin-bottom: 8;
}
Gtk.Label detailsTitle {
halign: start;
styles ["title-1"]
@@ -123,6 +126,20 @@ Adw.ApplicationWindow mainWindow {
}
}
}
Gtk.Label {
styles ["heading"]
halign: start;
label: "Hours";
margin-top: 16;
}
Gtk.ListBox detailsHoursBox {
styles ["boxed-list"]
selection-mode: none;
margin-top: 8;
hexpand: true;
}
}
}
}