Fix the appearance of comments

This commit is contained in:
Jonathan Bourdon
2024-07-22 00:30:22 -04:00
parent d392730c98
commit e376a0d571
7 changed files with 40 additions and 30 deletions

View File

@@ -58,9 +58,8 @@
{{ currentUser.userName }}
</span>
<img
:src="currentUser.storedDataUrls.profilePictureUrl"
:src="currentUser.storedDataUrls.profilePictureUrl ?? '/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png'"
alt="Profile Image"
@error="handleProfilePictureError"
class="ml-2 rounded-full" style="width: 32px; height: 32px;">
</v-btn>
</template>
@@ -120,11 +119,6 @@ const searchQuery = ref("");
const showSearch = ref(false);
let currentUser = reactive(MyUserModel.getDefaultUser());
const userStore = useUserStore();
const backupProfilePictureUrl = "/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png"
const handleProfilePictureError = (event) => {
event.target.src = backupProfilePictureUrl;
}
const toggleSidebar = () => {
eventBus.value.toggleSidebar();