mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 15:06:38 +02:00
feat: move topic thumb to template
use a single modal to show all thumbs and allow switching
This commit is contained in:
13
src/views/modals/topic-thumbs-view.tpl
Normal file
13
src/views/modals/topic-thumbs-view.tpl
Normal 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>
|
||||
Reference in New Issue
Block a user