From: Niki Roo Date: Thu, 23 Feb 2017 13:15:26 +0000 (+0100) Subject: Fix breaks (
) CSS style, GUI update bug fixed X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=f977d05b0516f4dcc1978d113ee8e945ab3fb2f9;p=fanfix-jexer.git Fix breaks (
) CSS style, GUI update bug fixed --- diff --git a/src/be/nikiroo/fanfix/output/Epub.java b/src/be/nikiroo/fanfix/output/Epub.java index de55d4c..89bff66 100644 --- a/src/be/nikiroo/fanfix/output/Epub.java +++ b/src/be/nikiroo/fanfix/output/Epub.java @@ -198,7 +198,7 @@ class Epub extends BasicOutput { writer.write("
"); break; case BREAK: - writer.write("
"); + writer.write("
"); break; case NORMAL: writer.write(" "); diff --git a/src/be/nikiroo/fanfix/output/Html.java b/src/be/nikiroo/fanfix/output/Html.java index e11ebcf..a02124c 100644 --- a/src/be/nikiroo/fanfix/output/Html.java +++ b/src/be/nikiroo/fanfix/output/Html.java @@ -206,7 +206,7 @@ class Html extends BasicOutput { writer.write("
"); break; case BREAK: - writer.write("
"); + writer.write("
"); break; case NORMAL: writer.write(" "); diff --git a/src/be/nikiroo/fanfix/output/epub.style.css b/src/be/nikiroo/fanfix/output/epub.style.css index 4bdab39..2c4a961 100644 --- a/src/be/nikiroo/fanfix/output/epub.style.css +++ b/src/be/nikiroo/fanfix/output/epub.style.css @@ -96,6 +96,12 @@ h2 .chaptitle { width: 100%; } +hr.break { + /* Can be removed if you want a more "compact" view */ + margin-top: 48px; + margin-bottom: 48px; +} + .dialogues { } diff --git a/src/be/nikiroo/fanfix/output/html.style.css b/src/be/nikiroo/fanfix/output/html.style.css index 2f88f0c..6b6d0d2 100644 --- a/src/be/nikiroo/fanfix/output/html.style.css +++ b/src/be/nikiroo/fanfix/output/html.style.css @@ -98,9 +98,15 @@ h2 .chaptitle { width: 100%; } +hr.break { + /* Can be removed if you want a more "compact" view */ + margin-top: 48px; + margin-bottom: 48px; +} + .dialogues { } .dialogue { font-style: italic; -} \ No newline at end of file +} diff --git a/src/be/nikiroo/fanfix/reader/LocalReaderBook.java b/src/be/nikiroo/fanfix/reader/LocalReaderBook.java index 7dd41b6..3b29e7f 100644 --- a/src/be/nikiroo/fanfix/reader/LocalReaderBook.java +++ b/src/be/nikiroo/fanfix/reader/LocalReaderBook.java @@ -266,7 +266,10 @@ class LocalReaderBook extends JPanel { * TRUE if it is present in the {@link LocalReader} cache */ public void setCached(boolean cached) { - this.cached = cached; + if (this.cached != cached) { + this.cached = cached; + invalidate(); + } } /**