1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

fix(core/rust): do not increase margin of right choice items

[no changelog]
This commit is contained in:
grdddj 2023-08-09 11:13:10 +02:00 committed by Jiří Musil
parent 9a4cb1887d
commit 6f60462d12

View File

@ -288,8 +288,7 @@ where
/// Going as far as possible. /// Going as far as possible.
fn show_right_choices(&self, area: Rect) { fn show_right_choices(&self, area: Rect) {
let mut page_index = self.page_counter + 1; let mut page_index = self.page_counter + 1;
// start with a little offset to account for the middle highlight let mut current_area = area.split_left(self.items_distance).1;
let mut current_area = area.split_left(self.items_distance + 3).1;
while current_area.width() > 0 { while current_area.width() > 0 {
// Breaking out of the loop if we exhausted right items // Breaking out of the loop if we exhausted right items
// and the carousel mode is not enabled. // and the carousel mode is not enabled.