Got rid of scene content

This commit is contained in:
p11 2025-04-21 10:32:54 +02:00
parent fdc6993f81
commit c8dcd0334c

View File

@ -46,11 +46,9 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
article .scene-section article .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 {
(scene) (scene)
} }
} }
}
@for (index, section) in sections.into_iter().enumerate() { @for (index, section) in sections.into_iter().enumerate() {
section .text-section section .text-section
@ -143,12 +141,6 @@ fn global_styles() -> Markup {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.scene-content {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.scene-section img { .scene-section img {
height: 100%; height: 100%;
width: auto; width: auto;