improved line wrapping

This commit is contained in:
Daniel Bulant 2021-05-23 18:04:31 +02:00
parent 6f179b5f52
commit 9db302fb3a

View file

@ -144,11 +144,11 @@
<tbody> <tbody>
{#each chapters.results.filter(c => c.data.attributes.translatedLanguage === "en") as chapter} {#each chapters.results.filter(c => c.data.attributes.translatedLanguage === "en") as chapter}
<tr> <tr>
<td>{chapter.data.attributes.volume ? "Vol " + chapter.data.attributes.volume : ""}</td> <td class="no-wrap">{chapter.data.attributes.volume ? "Vol " + chapter.data.attributes.volume : ""}</td>
<td>Chapter {chapter.data.attributes.chapter}</td> <td class="no-wrap">Chapter {chapter.data.attributes.chapter}</td>
<td>{chapter.data.attributes.title}</td> <td>{chapter.data.attributes.title}</td>
<td class="action"><span on:click={() => prepare(chapter)}>Download</span></td> <td class="action no-wrap"><span on:click={() => prepare(chapter)}>Download</span></td>
<td class="action"><a href={$url("./" + chapter.data.id)} on:click|stopPropagation>View</a></td> <td class="action no-wrap"><a href={$url("./" + chapter.data.id)} on:click|stopPropagation>View</a></td>
</tr> </tr>
{/each} {/each}
</tbody> </tbody>
@ -160,6 +160,9 @@
main { main {
font-size: 1.1rem; font-size: 1.1rem;
} }
.no-wrap {
white-space: nowrap;
}
tbody { tbody {
list-style-type: disc; list-style-type: disc;
} }