Removed scene container

This commit is contained in:
p11 2025-04-21 10:23:50 +02:00
parent 2b9292a23c
commit a07cbe38a4

View File

@ -42,14 +42,12 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
html! { html! {
div #story-container { div #story-container {
div .textbox-container { div .textbox-container {
div .scene-container { @for (index, scene) in scenes.iter().enumerate() {
@for (index, scene) in scenes.iter().enumerate() { div .scene-section
div .scene-section data-section-index=(index)
data-section-index=(index) style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) { div .scene-content {
div .scene-content { (scene)
(scene)
}
} }
} }
} }
@ -130,14 +128,6 @@ fn global_styles() -> Markup {
padding-top: 42.1875%; padding-top: 42.1875%;
background: #f8f8f8; background: #f8f8f8;
overflow: hidden; overflow: hidden;
}
.scene-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}"; }";
const SCENE_STYLES: &str = r" const SCENE_STYLES: &str = r"