From a07cbe38a4ff1770e0b9a0e578e1a70855a4f755 Mon Sep 17 00:00:00 2001 From: p11 Date: Mon, 21 Apr 2025 10:23:50 +0200 Subject: [PATCH] Removed scene container --- src/vn.rs | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/vn.rs b/src/vn.rs index 277b4f3..0f97272 100644 --- a/src/vn.rs +++ b/src/vn.rs @@ -42,14 +42,12 @@ fn generate_html(scenes: Vec, sections: Vec) -> Markup { html! { div #story-container { div .textbox-container { - div .scene-container { - @for (index, scene) in scenes.iter().enumerate() { - div .scene-section - data-section-index=(index) - style=(format!("display: {};", if index == 0 { "block" } else { "none" })) { - div .scene-content { - (scene) - } + @for (index, scene) in scenes.iter().enumerate() { + div .scene-section + data-section-index=(index) + style=(format!("display: {};", if index == 0 { "block" } else { "none" })) { + div .scene-content { + (scene) } } } @@ -130,14 +128,6 @@ fn global_styles() -> Markup { padding-top: 42.1875%; background: #f8f8f8; overflow: hidden; - } - .scene-container { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1; }"; const SCENE_STYLES: &str = r"