diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-04-03 09:14:42 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-04-03 09:14:42 +0000 |
| commit | e4b2fdf1240571f1a3d4be743d73d2b8207b7ba6 (patch) | |
| tree | 8d21d76ef7471df36b3e0468e06b3870b280c714 /src/components/status/status.vue | |
| parent | 214dd1f6d14073c26316bf5344f03b4b6af999b2 (diff) | |
| parent | 0c4dc26808c3bb7508bf9005f3c3430f1c7e2039 (diff) | |
Merge branch 'stillGifs' into 'develop'
Still gifs
See merge request pleroma/pleroma-fe!193
Diffstat (limited to 'src/components/status/status.vue')
| -rw-r--r-- | src/components/status/status.vue | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 28272b0b..d451b67c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -34,8 +34,8 @@ <div class="media status container"> <div class="media-left"> <a :href="status.user.statusnet_profile_url"> - <img @click.prevent="toggleUserExpanded" :class="{retweeted: retweet}" class='avatar' :src="status.user.profile_image_url_original"> - <img v-if="retweet" class='avatar-retweeter' :src="statusoid.user.profile_image_url_original"></img> + <StillImage @click.native.prevent="toggleUserExpanded" :class="{retweeted: retweet}" class='avatar' :src="status.user.profile_image_url_original"/> + <StillImage v-if="retweet" class='avatar avatar-retweeter' :src="statusoid.user.profile_image_url_original"/> </a> </div> <div class="media-body"> @@ -84,7 +84,7 @@ </div> <div class="status-preview base00-background base03-border" v-if="showPreview && preview"> - <img class="avatar" :src="preview.user.profile_image_url_original"> + <StillImage class="avatar" :src="preview.user.profile_image_url_original"/> <div class="text"> <h4> {{ preview.user.name }} @@ -146,6 +146,7 @@ box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); margin-top: 0.5em; margin-left: 1em; + z-index: 50; .avatar { flex-shrink: 0; @@ -264,9 +265,8 @@ .media-left { margin: 0.2em 0.3em 0 0; - img { + .avatar { float: right; - border-radius: 5px; } } @@ -330,6 +330,17 @@ .status .avatar { width: 48px; height: 48px; + border-radius: 5px; + overflow: hidden; + + img { + width: 100%; + height: 100%; + } + + &.animated::before { + display: none; + } &.retweeted { width: 40px; @@ -339,7 +350,16 @@ } } - .status img.avatar-retweeter { + .status:hover .animated.avatar { + canvas { + display: none; + } + img { + visibility: visible; + } + } + + .status .avatar-retweeter { width: 24px; height: 24px; position: absolute; @@ -413,7 +433,7 @@ } } - .status img.avatar-retweeter { + .status .avatar-retweeter { width: 22px; height: 22px; position: absolute; |
