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"