mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 13:37:23 +00:00
Restyle video item (#401)
* Remove 'views' text - add '•' between views and time ago - make views and time ago a one liner - add uploader avatar beside channel name * Remove uploader image beside channel name * change video channel layout * Fix title margin when there is no img source - shrink avatar size - add router-link for avatar - remove padding from title * Finalize video item styling Co-authored-by: jim3692 <jim3692@gmail.com>
This commit is contained in:
parent
a45b2b8380
commit
4006d5232b
@ -23,38 +23,46 @@
|
|||||||
>Watched</span
|
>Watched</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<p class="uk-text-break">{{ video.title }}</p>
|
|
||||||
|
<div>
|
||||||
|
<p class="uk-text-break" style="padding-top: 0.5rem; margin-bottom: 0.5rem">{{ video.title }}</p>
|
||||||
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<div :class="{ 'uk-align-left': !(video.views >= 0 || video.uploadedDate) }">
|
<div class="uk-align-right" style="margin-left: 0; margin-bottom: 0; display: inline-block; width: 10%">
|
||||||
<div v-if="video.uploaderUrl && video.uploaderName && !hideChannel">
|
<router-link :to="video.url + '&listen=1'">
|
||||||
|
<font-awesome-icon icon="headphones"></font-awesome-icon>
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="video.uploaderUrl && video.uploaderName && !hideChannel" style="display: flex; flex-flow: row; height: 15%">
|
||||||
|
<router-link class="uk-link-muted" :to="video.uploaderUrl">
|
||||||
|
<img v-if="video.uploaderAvatar" :src="video.uploaderAvatar" loading="lazy" class="uk-border-circle" style="margin-right: 0.5rem; margin-top:0.5rem; width: 32px; height: 32px;" />
|
||||||
|
</router-link>
|
||||||
|
|
||||||
|
<div>
|
||||||
<router-link class="uk-link-muted" :to="video.uploaderUrl">
|
<router-link class="uk-link-muted" :to="video.uploaderUrl">
|
||||||
{{ video.uploaderName }} <font-awesome-icon
|
{{ video.uploaderName }} <font-awesome-icon
|
||||||
v-if="video.uploaderVerified"
|
v-if="video.uploaderVerified"
|
||||||
icon="check"
|
icon="check"
|
||||||
></font-awesome-icon>
|
></font-awesome-icon>
|
||||||
</router-link>
|
</router-link>
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<b v-if="video.views >= 0 || video.uploadedDate" class="uk-text-small uk-align-left">
|
|
||||||
<div v-if="video.views >= 0">
|
|
||||||
<font-awesome-icon icon="eye"></font-awesome-icon>
|
|
||||||
{{ numberFormat(video.views) }} views
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
<b v-if="video.views >= 0 || video.uploadedDate" class="uk-text-small">
|
||||||
|
<span v-if="video.views >= 0">
|
||||||
|
<font-awesome-icon icon="eye"></font-awesome-icon>
|
||||||
|
{{ numberFormat(video.views) }} •
|
||||||
|
</span>
|
||||||
|
<span v-if="video.uploadedDate">
|
||||||
|
{{ video.uploadedDate }}
|
||||||
|
</span>
|
||||||
|
<span v-if="video.uploaded">
|
||||||
|
{{ timeAgo(video.uploaded) }}
|
||||||
|
</span>
|
||||||
|
</b>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="video.uploadedDate">
|
|
||||||
{{ video.uploadedDate }}
|
|
||||||
</div>
|
|
||||||
<div v-if="video.uploaded">
|
|
||||||
{{ timeAgo(video.uploaded) }}
|
|
||||||
</div>
|
|
||||||
</b>
|
|
||||||
<div class="uk-align-right">
|
|
||||||
<router-link :to="video.url + '&listen=1'">
|
|
||||||
<font-awesome-icon icon="headphones"></font-awesome-icon>
|
|
||||||
</router-link>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user