StringBuilder desc = new StringBuilder();
if (chapter <= 0) {
+ desc.append("<h1 class='title'>");
+ desc.append(story.getMeta().getTitle());
+ desc.append("</h1>\n");
desc.append("<div class='desc'>\n");
desc.append("\t<div class='cover'>\n");
desc.append("\t\t<img src='/story/" + luid + "/cover'/>\n");
content.append(desc);
String description = new TextOutput(false).convert(chap,
chapter > 0);
- content.append(
- description.isEmpty() ? "No description provided."
- : description);
+ content.append(chap.getParagraphs().size() <= 0
+ ? "No content provided."
+ : description);
content.append("</div>\n");
if (chapter <= 0)
.desc {
display: flex;
+ flex-direction: column;
padding-top: 10px;
}
-.desc .cover img {
- width: 100px;
- padding-right: 10px;
+.desc .cover {
max-height: 280px;
+ overflow: hidden;
+}
+
+.desc .cover img {
+ max-width: 80%;
+ margin: auto;
+ display: block;
}
.desc .details .col1 {
.bar.optionbar.s1 { padding-left: calc(400px - (1 * (64px + 5px) / 2)); }
.bar.optionbar.s4 { padding-left: calc(400px - (4 * (64px + 5px) / 2)); }
+
+ .desc { flex-direction: row; }
+ .desc .cover img {
+ width: 200px;
+ padding-right: 10px;
+ }
}