mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-26 18:02:35 +00:00
fix(delizia): allow slightly longer header if there is a button
[no changelog]
This commit is contained in:
parent
faf71b3cd8
commit
295717d34b
@ -185,7 +185,8 @@ impl Component for Header {
|
||||
|
||||
fn place(&mut self, bounds: Rect) -> Rect {
|
||||
let header_area = if let Some(b) = &mut self.button {
|
||||
let (rest, button_area) = bounds.split_right(TITLE_HEIGHT + theme::SPACING * 2);
|
||||
let (rest, button_area) = bounds.split_right(TITLE_HEIGHT);
|
||||
let button_area = button_area.outset(Insets::left(theme::SPACING * 2));
|
||||
let (button_area, _under_button_area) = button_area.split_top(TITLE_HEIGHT);
|
||||
b.place(button_area);
|
||||
rest
|
||||
|
Loading…
Reference in New Issue
Block a user