Compare commits

...
2 Commits
Author SHA1 Message Date
DebaucheryLibrarian 8a32febb8a 0.12.4 2024-03-23 22:44:51 +01:00
DebaucheryLibrarian 0430140a7e Added actor avatar fallbacks. 2024-03-23 22:44:49 +01:00
9 changed files with 178 additions and 4 deletions
+17
View File
@@ -19,6 +19,13 @@
loading="lazy"
class="avatar"
>
<img
v-else
:src="`/img/avatars/${actor.gender || 'female'}.svg`"
loading="lazy"
class="fallback"
>
</Link>
<Icon
@@ -172,6 +179,8 @@ async function unstash() {
.avatar-container {
position: relative;
flex-grow: 1;
overflow: hidden;
background: var(--grey-dark-40);
}
.avatar-link {
@@ -189,6 +198,14 @@ async function unstash() {
background-position: center 0;
}
.fallback {
height: 100%;
width: 100%;
display: block;
object-fit: contain;
opacity: .1;
}
.icon.heart {
width: 2rem;
height: 1.5rem;
+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "traxxx-web",
"version": "0.12.3",
"version": "0.12.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.12.3",
"version": "0.12.4",
"dependencies": {
"@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5",
+1 -1
View File
@@ -70,5 +70,5 @@
"postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2"
},
"version": "0.12.3"
"version": "0.12.4"
}
+75
View File
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 25 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

+5
View File
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 23 KiB

+5
View File
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 23 KiB

+65
View File
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 55 KiB

+8 -1
View File
@@ -7,7 +7,14 @@ import postCssCustomMedia from 'postcss-custom-media';
export default {
plugins: [
vue(),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
vike({
redirects: {
'/': '/updates',