Update NotificationCard, improve popover image scaling

This commit is contained in:
Daniel Supernault 2020-06-18 23:04:40 -06:00
parent ca1b2ce69a
commit 0153e59661
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -24,7 +24,7 @@
<span v-if="n.status.hasOwnProperty('media_attachments')"> <span v-if="n.status.hasOwnProperty('media_attachments')">
<a class="font-weight-bold" v-bind:href="n.status.url" :id="'fvn-' + n.id">post</a>. <a class="font-weight-bold" v-bind:href="n.status.url" :id="'fvn-' + n.id">post</a>.
<b-popover :target="'fvn-' + n.id" title="" triggers="hover" placement="top" boundary="window"> <b-popover :target="'fvn-' + n.id" title="" triggers="hover" placement="top" boundary="window">
<img :src="notificationPreview(n)" width="100px" height="100px"> <img :src="notificationPreview(n)" width="100px" height="100px" style="object-fit: cover;">
</b-popover> </b-popover>
</span> </span>
<span v-else> <span v-else>