From 63970ffc8933e6a1c53ae7526102f4a78329aa19 Mon Sep 17 00:00:00 2001 From: yoanhg421 Date: Mon, 2 Oct 2023 09:00:32 -0700 Subject: [PATCH] Fix display on Kobo. --- internal/epub/templates/epub_templates_style.css.tmpl | 5 +---- internal/epub/templates/epub_templates_text.xhtml.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/internal/epub/templates/epub_templates_style.css.tmpl b/internal/epub/templates/epub_templates_style.css.tmpl index abe97c2..f97bdf7 100644 --- a/internal/epub/templates/epub_templates_style.css.tmpl +++ b/internal/epub/templates/epub_templates_style.css.tmpl @@ -4,10 +4,6 @@ } body { - color: #{{ .View.Color.Foreground }}; - background: #{{ .View.Color.Background }}; - width: {{ .View.Width }}px; - height: {{ .View.Height }}px; display: block; margin: 0; padding: 0; @@ -23,4 +19,5 @@ div { img { margin: 0; padding: 0; + height: {{ .View.Height }}px; } \ No newline at end of file diff --git a/internal/epub/templates/epub_templates_text.xhtml.tmpl b/internal/epub/templates/epub_templates_text.xhtml.tmpl index d918065..2042dcb 100644 --- a/internal/epub/templates/epub_templates_text.xhtml.tmpl +++ b/internal/epub/templates/epub_templates_text.xhtml.tmpl @@ -8,8 +8,8 @@ -
- {{ .Title }} +
+ {{ .Title }}
\ No newline at end of file