Removed scene container
This commit is contained in:
parent
2b9292a23c
commit
a07cbe38a4
22
src/vn.rs
22
src/vn.rs
@ -42,14 +42,12 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> 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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user