forked from DebaucheryLibrarian/traxxx
Fixed seed files for stand-alone channel entities.
This commit is contained in:
@@ -4,32 +4,46 @@
|
||||
class="entity content"
|
||||
>
|
||||
<div class="info">
|
||||
<img
|
||||
v-if="$route.name === 'network'"
|
||||
class="logo"
|
||||
:src="`/img/logos/${entity.slug}/thumbs/network.png`"
|
||||
>
|
||||
<template v-if="entity.hasLogo">
|
||||
<img
|
||||
v-if="$route.name === 'network'"
|
||||
class="logo"
|
||||
:src="`/img/logos/${entity.slug}/thumbs/network.png`"
|
||||
>
|
||||
|
||||
<img
|
||||
v-else-if="entity.parent"
|
||||
class="logo"
|
||||
:src="`/img/logos/${entity.parent.slug}/thumbs/${entity.slug}.png`"
|
||||
>
|
||||
<img
|
||||
v-else-if="entity.parent"
|
||||
class="logo"
|
||||
:src="`/img/logos/${entity.parent.slug}/thumbs/${entity.slug}.png`"
|
||||
>
|
||||
|
||||
<img
|
||||
<img
|
||||
v-else
|
||||
class="logo"
|
||||
:src="`/img/logos/${entity.slug}/thumbs/${entity.slug}.png`"
|
||||
>
|
||||
</template>
|
||||
|
||||
<h2
|
||||
v-else
|
||||
class="logo"
|
||||
:src="`/img/logos/${entity.slug}/thumbs/${entity.slug}.png`"
|
||||
>
|
||||
class="name"
|
||||
>{{ entity.name }}</h2>
|
||||
|
||||
<router-link
|
||||
v-if="entity.parent"
|
||||
:to="`/${entity.parent.type}/${entity.parent.slug}`"
|
||||
class="link parent-link"
|
||||
>
|
||||
<img
|
||||
v-if="entity.parent.hasLogo"
|
||||
class="logo logo-parent"
|
||||
:src="`/img/logos/${entity.parent.slug}/thumbs/network.png`"
|
||||
>
|
||||
|
||||
<h3
|
||||
v-else
|
||||
class="name parent-name"
|
||||
>{{ entity.parent.name }}</h3>
|
||||
</router-link>
|
||||
</div>
|
||||
|
||||
@@ -136,6 +150,12 @@ export default {
|
||||
padding: 1rem;
|
||||
background: var(--profile);
|
||||
border-bottom: solid 1px var(--lighten-hint);
|
||||
|
||||
.link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.logo {
|
||||
@@ -146,6 +166,15 @@ export default {
|
||||
object-position: 0 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
color: var(--text-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.logo-parent {
|
||||
object-position: 100% 50%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user