diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2018-08-23 00:40:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-23 00:40:32 +0900 |
| commit | d704aca0355d5ca92c071d8c63440e6ca09c7b6f (patch) | |
| tree | 8567dca0398b5514de5f6469618de99535c4ea03 /src/client | |
| parent | Update url-preview.vue (diff) | |
| download | sharkey-d704aca0355d5ca92c071d8c63440e6ca09c7b6f.tar.gz sharkey-d704aca0355d5ca92c071d8c63440e6ca09c7b6f.tar.bz2 sharkey-d704aca0355d5ca92c071d8c63440e6ca09c7b6f.zip | |
Update url-preview.vue
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/url-preview.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/url-preview.vue b/src/client/app/common/views/components/url-preview.vue index 655958188e..be69012737 100644 --- a/src/client/app/common/views/components/url-preview.vue +++ b/src/client/app/common/views/components/url-preview.vue @@ -1,6 +1,6 @@ <template> <div v-if="player.url" class="player" :style="`padding: ${(player.height || 0) / (player.width || 1) * 100}% 0 0`"> - <iframe :src="player.url" :width="player.width" :heigth="player.height" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen /> + <iframe :src="player.url" :width="player.width || '100%'" :heigth="player.height || 250" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen /> </div> <div v-else-if="tweetUrl && detail" class="twitter"> <blockquote ref="tweet" class="twitter-tweet" :data-theme="$store.state.device.darkmode ? 'dark' : null"> |