mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix #375
This commit is contained in:
@@ -121,12 +121,22 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<div class="d-flex flex-column align-center pr-3">
|
<div class="d-flex flex-column align-center pr-3" :title="torrent?.site_name">
|
||||||
<VImg v-if="siteIcon" :src="siteIcon" :alt="torrent?.site_name" class="rounded mb-1" width="32" height="32" />
|
<VImg
|
||||||
<VAvatar v-else size="24" class="mb-1 text-caption bg-primary-lighten-4 text-primary font-weight-bold">
|
v-if="siteIcon"
|
||||||
|
:src="siteIcon"
|
||||||
|
:alt="torrent?.site_name"
|
||||||
|
class="rounded mb-1 site-icon"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
/>
|
||||||
|
<VAvatar
|
||||||
|
v-else
|
||||||
|
size="32"
|
||||||
|
class="mb-1 text-caption bg-primary-lighten-4 text-primary font-weight-bold site-icon"
|
||||||
|
>
|
||||||
{{ torrent?.site_name?.substring(0, 1) }}
|
{{ torrent?.site_name?.substring(0, 1) }}
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
<div class="font-weight-bold text-body-2 text-center d-none d-sm-block">{{ torrent?.site_name }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -332,4 +342,12 @@ onMounted(() => {
|
|||||||
background-color: #9c27b0;
|
background-color: #9c27b0;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-icon {
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-icon:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user