Finishing up the MVP
This commit is contained in:
parent
3619063e68
commit
7f533cc583
25 changed files with 535 additions and 291 deletions
|
|
@ -1,7 +1,8 @@
|
|||
<img
|
||||
hx-get="/media/{{ post.id }}/full"
|
||||
hx-swap="outerHTML"
|
||||
id="media"
|
||||
@click="maximized = !maximized"
|
||||
@keyup.enter="maximized = !maximized"
|
||||
tabindex="0"
|
||||
src="/files/{{ post.media }}"
|
||||
style="width: 100%; height: 100%; max-width: {{ post.width }}px; max-height: {{ post.height }}px; aspect-ratio: {{ post.width }} / {{ post.height }}; cursor: zoom-in"
|
||||
:style="maximized ? { width: width + 'px', height: height + 'px', 'aspect-ratio': width + ' / ' + height, cursor: 'zoom-out' } : { width: '100%', height: '100%', 'max-width': width + 'px', 'max-height': height + 'px', 'aspect-ratio': width + ' / ' + height, cursor: 'zoom-in' }"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue