Added actor avatar fallbacks.
This commit is contained in:
parent
e56f2db42d
commit
0430140a7e
|
@ -19,6 +19,13 @@
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="avatar"
|
class="avatar"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<img
|
||||||
|
v-else
|
||||||
|
:src="`/img/avatars/${actor.gender || 'female'}.svg`"
|
||||||
|
loading="lazy"
|
||||||
|
class="fallback"
|
||||||
|
>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Icon
|
<Icon
|
||||||
|
@ -172,6 +179,8 @@ async function unstash() {
|
||||||
.avatar-container {
|
.avatar-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
background: var(--grey-dark-40);
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar-link {
|
.avatar-link {
|
||||||
|
@ -189,6 +198,14 @@ async function unstash() {
|
||||||
background-position: center 0;
|
background-position: center 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fallback {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
object-fit: contain;
|
||||||
|
opacity: .1;
|
||||||
|
}
|
||||||
|
|
||||||
.icon.heart {
|
.icon.heart {
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
|
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 23 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 23 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 55 KiB |
|
@ -7,7 +7,14 @@ import postCssCustomMedia from 'postcss-custom-media';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue({
|
||||||
|
template: {
|
||||||
|
transformAssetUrls: {
|
||||||
|
base: null,
|
||||||
|
includeAbsolute: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
vike({
|
vike({
|
||||||
redirects: {
|
redirects: {
|
||||||
'/': '/updates',
|
'/': '/updates',
|
||||||
|
|
Loading…
Reference in New Issue