mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
- Adjusted verified checkmark aligning (top text)
- Changed import button (in /import) element to button, that causes buggy click pointer not working - Made the image on WatchVideo component redirects to channel - Centered the video card relative to their parent (Useful when theres not enough space for another column in a grid but still made an extra unnecessary space, what happen is the card would justify to the left)
This commit is contained in:
parent
8da139f7c1
commit
fb52fb7b41
7 changed files with 44 additions and 42 deletions
|
@ -3,8 +3,7 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve over network": "vite --host",
|
||||
"serve over local": "vite",
|
||||
"serve": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint --fix --color --ignore-path .gitignore --ext .js,.vue ."
|
||||
|
|
|
@ -6,10 +6,12 @@
|
|||
<div class="pp-channel-page-author flex place-items-center">
|
||||
<img height="48" width="48" class="m-1" :src="channel.avatarUrl" />
|
||||
<div>
|
||||
<div class="flex">
|
||||
<h5 v-text="channel.name" />
|
||||
<font-awesome-icon class="ml-1.5" v-if="channel.verified" icon="check" />
|
||||
</div>
|
||||
<p class="text-left">{{ numberFormat(channel.subscriberCount) }} Subscribers</p>
|
||||
</div>
|
||||
<font-awesome-icon class="ml-1.5" v-if="channel.verified" icon="check" />
|
||||
</div>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<p class="whitespace-pre-wrap mt-2">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<label for="import-override">Override</label>
|
||||
</div>
|
||||
<div>
|
||||
<a class="btn w-auto" @click="handleImport">Import</a>
|
||||
<button class="btn w-auto" @click="handleImport">Import</button>
|
||||
</div>
|
||||
</form>
|
||||
<br />
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<span class="mx-2" v-text="subscription.name" />
|
||||
</router-link>
|
||||
<button
|
||||
class="btn w-min"
|
||||
class="btn w-fit"
|
||||
@click="handleButton(subscription)"
|
||||
v-t="`actions.${subscription.subscribed ? 'unsubscribe' : 'subscribe'}`"
|
||||
/>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div v-if="showVideo">
|
||||
<div v-if="showVideo" class="flex flex-col justify-between w-full">
|
||||
<router-link
|
||||
:to="{
|
||||
path: '/watch',
|
||||
|
@ -50,8 +50,41 @@
|
|||
/>
|
||||
</div>
|
||||
</router-link>
|
||||
<div class="flex mt-10">
|
||||
<router-link :to="video.uploaderUrl" class="w-fit h-fit">
|
||||
<img
|
||||
v-if="video.uploaderAvatar"
|
||||
:src="video.uploaderAvatar"
|
||||
loading="lazy"
|
||||
:alt="video.uploaderName"
|
||||
class="mr-0.5 mt-0.5 w-32px h-32px"
|
||||
width="68"
|
||||
height="68"
|
||||
/>
|
||||
</router-link>
|
||||
|
||||
<div class="float-right m-0 inline-block children:px-1">
|
||||
<div class="w-[calc(100%-32px-1rem)]">
|
||||
<router-link
|
||||
v-if="video.uploaderUrl && video.uploaderName && !hideChannel"
|
||||
class="link-secondary overflow-hidden block w-fit"
|
||||
:to="video.uploaderUrl"
|
||||
:title="video.uploaderName"
|
||||
>
|
||||
<span v-text="video.uploaderName" />
|
||||
<font-awesome-icon class="ml-1.5" v-if="video.uploaderVerified" icon="check" />
|
||||
</router-link>
|
||||
|
||||
<strong v-if="video.views >= 0 || video.uploadedDate" class="text-sm">
|
||||
<span v-if="video.views >= 0">
|
||||
<font-awesome-icon icon="eye" />
|
||||
<span class="pl-0.5" v-text="`${numberFormat(video.views)} •`" />
|
||||
</span>
|
||||
<span v-if="video.uploaded > 0" class="pl-0.5" v-text="timeAgo(video.uploaded)" />
|
||||
<span v-else-if="video.uploadedDate" class="pl-0.5" v-text="video.uploadedDate" />
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
<div class="inline-block children:px-1 self-end">
|
||||
<router-link
|
||||
:to="{
|
||||
path: '/watch',
|
||||
|
@ -79,40 +112,6 @@
|
|||
<font-awesome-icon icon="circle-minus" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="flex">
|
||||
<router-link :to="video.uploaderUrl">
|
||||
<img
|
||||
v-if="video.uploaderAvatar"
|
||||
:src="video.uploaderAvatar"
|
||||
loading="lazy"
|
||||
:alt="video.uploaderName"
|
||||
class="mr-0.5 mt-0.5 w-32px h-32px"
|
||||
width="68"
|
||||
height="68"
|
||||
/>
|
||||
</router-link>
|
||||
|
||||
<div class="w-[calc(100%-32px-1rem)]">
|
||||
<router-link
|
||||
v-if="video.uploaderUrl && video.uploaderName && !hideChannel"
|
||||
class="link-secondary overflow-hidden block"
|
||||
:to="video.uploaderUrl"
|
||||
:title="video.uploaderName"
|
||||
>
|
||||
<span v-text="video.uploaderName" />
|
||||
<font-awesome-icon class="ml-1.5" v-if="video.uploaderVerified" icon="check" />
|
||||
</router-link>
|
||||
|
||||
<strong v-if="video.views >= 0 || video.uploadedDate" class="text-sm">
|
||||
<span v-if="video.views >= 0">
|
||||
<font-awesome-icon icon="eye" />
|
||||
<span class="pl-0.5" v-text="`${numberFormat(video.views)} •`" />
|
||||
</span>
|
||||
<span v-if="video.uploaded > 0" class="pl-0.5" v-text="timeAgo(video.uploaded)" />
|
||||
<span v-else-if="video.uploadedDate" class="pl-0.5" v-text="video.uploadedDate" />
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<PlaylistAddModal v-if="showModal" :video-id="video.url.substr(-11)" @close="showModal = !showModal" />
|
||||
|
|
|
@ -67,7 +67,9 @@
|
|||
<div class="pp-watch-bellow-options flex">
|
||||
<!-- Channel Image & Info -->
|
||||
<div class="flex">
|
||||
<router-link v-if="video.uploaderUrl" class="link ml-1.5" :to="video.uploaderUrl">
|
||||
<img :src="video.uploaderAvatar" alt="" loading="lazy" class="w-auto" />
|
||||
</router-link>
|
||||
<div>
|
||||
<router-link v-if="video.uploaderUrl" class="link ml-1.5" :to="video.uploaderUrl">{{
|
||||
video.uploader
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
/*Avatar*/ .comment-avatar, .pp-import-channel img {width: 40rem; height: 40rem}
|
||||
|
||||
/*Video Grid */ .video-grid {display: grid; gap: 15rem; grid-template-columns: repeat(auto-fit, minmax(300rem, 1fr));}
|
||||
/*Video Grid */ .video-grid {display: grid; gap: 15rem; grid-template-columns: repeat(auto-fit, minmax(300rem, 1fr)); justify-items:center;}
|
||||
|
||||
tbody:nth-child(odd) {background: var(--efy_bg1)!important; box-shadow: inset 0 0 0 1.5px var(--efy_bg1)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue