app: move the review back arrow into the title bar
Settings already leaves the screen from the title bar, while the review kept its own back button in the header beside the champion portrait. Both screens now share the title bar button, and the review header starts with the portrait. The button still calls leave, so the player and the soundtrack stop on the way out.
This commit is contained in:
1 parent
673cddfff6
commit
5ab3161bf5
2 files changed
+7
-12
No files matched your search
@@ -473,16 +473,6 @@ pub fn view(app: &App, p: Paint) -> El {
|
||||
.key("review-title")
|
||||
.gap(10.0)
|
||||
.center_y()
|
||||
.child(ui::button(
|
||||
p,
|
||||
"back",
|
||||
"← Match history",
|
||||
false,
|
||||
|app: &mut App| {
|
||||
leave(app);
|
||||
app.screen = Screen::History;
|
||||
},
|
||||
))
|
||||
.child(ui::champion_portrait(
|
||||
app,
|
||||
p,
|
||||
|
||||
Reference in new issue
Block a user