From d9941b38b5291007568048429c53eb65eab17204 Mon Sep 17 00:00:00 2001 From: rushmore75 Date: Sun, 1 Jun 2025 14:07:55 -0600 Subject: [PATCH] closes #11 --- src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 84efb26..ca48fee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -380,6 +380,12 @@ impl State { } fn view(&self) -> Element { + + // TODO make this dynamic + // max height that the scripture body can be + // max height that the search resutls can be + let max_height = 600; + // Header bar, static, doesn't scroll column![ row![ @@ -460,6 +466,7 @@ impl State { ) .padding([5, 5]) ) + .height(max_height) .spacing(5), // Scripture scrollable( @@ -481,8 +488,7 @@ impl State { ) } ) - // TODO make this dynamic - .height(600) + .height(max_height) .spacing(5) ], // Notes