From 63970ffc8933e6a1c53ae7526102f4a78329aa19 Mon Sep 17 00:00:00 2001 From: yoanhg421 Date: Mon, 2 Oct 2023 09:00:32 -0700 Subject: [PATCH 1/2] 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 From e38db62af2f2ca57ee6c348985757c89d303ada7 Mon Sep 17 00:00:00 2001 From: yoanhg421 Date: Mon, 2 Oct 2023 11:41:26 -0700 Subject: [PATCH 2/2] revert some styles for better landscape display --- internal/epub/templates/epub_templates_style.css.tmpl | 3 ++- internal/epub/templates/epub_templates_text.xhtml.tmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/epub/templates/epub_templates_style.css.tmpl b/internal/epub/templates/epub_templates_style.css.tmpl index f97bdf7..0f6033d 100644 --- a/internal/epub/templates/epub_templates_style.css.tmpl +++ b/internal/epub/templates/epub_templates_style.css.tmpl @@ -4,6 +4,8 @@ } body { + color: #{{ .View.Color.Foreground }}; + background: #{{ .View.Color.Background }}; display: block; margin: 0; padding: 0; @@ -19,5 +21,4 @@ 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 2042dcb..55aa8f2 100644 --- a/internal/epub/templates/epub_templates_text.xhtml.tmpl +++ b/internal/epub/templates/epub_templates_text.xhtml.tmpl @@ -9,7 +9,7 @@
- {{ .Title }} + {{ .Title }}
\ No newline at end of file