feat: move topic thumb to template

use a single modal to show all thumbs and allow switching
This commit is contained in:
Barış Soner Uşaklı
2023-04-26 12:15:03 -04:00
parent 04219c4ccb
commit 84a78c2d5f
2 changed files with 33 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
<div class="d-flex flex-column gap-4 topic-thumbs-view-modal">
<div class="d-flex justify-content-center align-items-center mb-5" style="height: 33vh; max-height: 33vh;">
<img component="topic/thumb/current" src="{src}" style="max-height: 33vh;" />
</div>
<hr/>
<div class="d-flex justify-content-center mb-3 gap-3">
{{{ each thumbs }}}
<div>
<img component="topic/thumb/select" class="pointer rounded border border-3 {{{ if ./selected }}}border-primary{{{ end }}}" height="64px" style="width: auto;" src="{./url}"/>
</div>
{{{ end }}}
</div>
</div>