diff --git a/components/Avatar.vue b/components/Avatar.vue
index 3684cad..06d36ad 100644
--- a/components/Avatar.vue
+++ b/components/Avatar.vue
@@ -3,8 +3,10 @@
class="display-avatar"
:src="displayAvatar"
:alt="displayName" />
-
@@ -19,26 +21,17 @@ const props = defineProps<{
}>();
const displayName = getDisplayName(props.profile)
+let user: UserResponse
let displayAvatar: string | null
-
if ("username" in props.profile) {
// assume it's a UserResponse
displayAvatar = props.profile.avatar
- if (!displayAvatar) {
- if (!isCanvasBlocked()) {
- displayAvatar = generateDefaultIcon(displayName, props.profile.uuid)
- }
- }
-
+ user = props.profile
} else {
// assume it's a GuildMemberResponse
displayAvatar = props.profile.user.avatar
- if (!displayAvatar) {
- if (!isCanvasBlocked()) {
- displayAvatar = generateDefaultIcon(displayName, props.profile.user_uuid)
- }
- }
+ user = props.profile.user
}
diff --git a/components/DefaultIcon.vue b/components/DefaultIcon.vue
new file mode 100644
index 0000000..17e6c79
--- /dev/null
+++ b/components/DefaultIcon.vue
@@ -0,0 +1,48 @@
+
+
+
+ {{ previewName }}
+
+
+
+
+
+
+
diff --git a/components/Guild/MemberEntry.vue b/components/Guild/MemberEntry.vue
index 6890ce1..cc82c2b 100644
--- a/components/Guild/MemberEntry.vue
+++ b/components/Guild/MemberEntry.vue
@@ -32,4 +32,11 @@ function hideModalPopup() {
.member-item {
position: relative;
}
+
+.member-avatar {
+ min-height: 2.3em;
+ max-height: 2.3em;
+ min-width: 2.3em;
+ max-width: 2.3em;
+}
diff --git a/components/Message.vue b/components/Message.vue
index 4338336..ca7e31e 100644
--- a/components/Message.vue
+++ b/components/Message.vue
@@ -228,7 +228,10 @@ function getDayDifference(date1: Date, date2: Date) {
}
.message-author-avatar {
- width: 100%;
+ min-height: 2em;
+ max-height: 2em;
+ min-width: 2em;
+ max-width: 2em;
}
.left-column {
diff --git a/components/User/UserEntry.vue b/components/User/UserEntry.vue
index 204ec73..52ff5bc 100644
--- a/components/User/UserEntry.vue
+++ b/components/User/UserEntry.vue
@@ -38,7 +38,7 @@ const props = defineProps<{
.user-avatar {
min-width: 2.3em;
max-width: 2.3em;
- min-width: 2.3em;
+ min-height: 2.3em;
max-height: 2.3em;
}
diff --git a/layouts/client.vue b/layouts/client.vue
index e7461a1..800a097 100644
--- a/layouts/client.vue
+++ b/layouts/client.vue
@@ -17,19 +17,15 @@
-
+
-
-
+ :name="guild.name" :seed="guild.uuid"/>
@@ -52,6 +48,7 @@