add previous button

This commit is contained in:
orangix
2024-02-06 01:41:28 +01:00
parent 337796b9be
commit 0171d76fae
4 changed files with 47 additions and 5 deletions

View File

@@ -53,9 +53,16 @@
</div>
</div>
{{#noteq next ""}}
<a href="{{next}}" class="self-end">
<button class="p-2 rounded-lg bg-slate-600">Next &gt;</button>
</a>
<div class="flex">
{{#noteq prev ""}}
<a href="{{prev}}">
<button title="Previous" class="px-3 py-2 rounded-l-lg bg-slate-600">&lt;</button>
</a>
{{/noteq}}
<a class="[&:only-child>button]:rounded-lg" href="{{next}}">
<button class="px-3 py-2 rounded-r-lg bg-green-400 text-gray-800">Next &gt;</button>
</a>
</div>
{{/noteq}}
</div>