From 5a5a5eb913eb07e465fbbe16c5d692744475b7ff Mon Sep 17 00:00:00 2001 From: p11 Date: Mon, 21 Apr 2025 10:27:35 +0200 Subject: [PATCH] Got rid of textbox content --- src/vn.rs | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/vn.rs b/src/vn.rs index c898337..05960fe 100644 --- a/src/vn.rs +++ b/src/vn.rs @@ -52,13 +52,11 @@ fn generate_html(scenes: Vec, sections: Vec) -> Markup { } } - div .textbox-content { - @for (index, section) in sections.into_iter().enumerate() { - div .story-section - data-section-index=(index) - style=(format!("display: {};", if index == 0 { "block" } else { "none" })) { - (section) - } + @for (index, section) in sections.into_iter().enumerate() { + div .story-section + data-section-index=(index) + style=(format!("display: {};", if index == 0 { "block" } else { "none" })) { + (section) } } } @@ -162,15 +160,6 @@ fn global_styles() -> Markup { }"; const TEXTBOX_STYLES: &str = r" - .textbox-content { - position: absolute; - bottom: 0; - left: 0; - right: 0; - z-index: 2; - background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 30%); - padding: 2vw; - } .visual-novel-box { border: 0.2vw solid var(--border-color); border-radius: var(--border-radius);