kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.45k stars 153 forks source link

refactor: avoid changing constraints during PreviewFileState load #333

Closed Handfish closed 1 year ago

Handfish commented 1 year ago

File previews load pretty quickly. Adjusting constraints during loading state made the file sizes flicker on the right side of my screen due to the rapidly growing and shrinking center column. This change keeps the columns a consistent size when highlighting new items making the application a bit easier on the eyes.