groovebox: autoslice!

This commit is contained in:
🪞👃🪞 2025-05-15 04:10:58 +03:00
parent 5a360d02fa
commit 7495dd10f2
3 changed files with 36 additions and 26 deletions

View file

@ -189,6 +189,9 @@ impl App {
fn w_sidebar (&self) -> u16 {
self.project.w_sidebar(self.editor.is_some())
}
fn h_sample_detail (&self) -> u16 {
4.max(self.height() as u16 * 3 / 9)
}
fn focus_editor (&self) -> bool {
self.is_editing()
}