Improve profile card layout in sidebar
Build And Push Image / docker (push) Successful in 2m6s Details

- Made profile card taller with min-height of 180px
- Stacked profile image above name and email vertically
- Centered profile content for better visual balance
- Increased profile avatar size to 'large' for better visibility
- Moved menu button to absolute position in top-right corner
- Adjusted font sizes slightly for better readability
- Fixed text overflow with proper ellipsis

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Matt 2025-08-31 15:08:54 +02:00
parent 6e0e640f1d
commit 36b8f9d2d4
1 changed files with 21 additions and 18 deletions

View File

@ -65,13 +65,14 @@
<div class="profile-footer"> <div class="profile-footer">
<v-divider class="mb-3" /> <v-divider class="mb-3" />
<div class="profile-card-footer"> <div class="profile-card-footer">
<div class="profile-content">
<div class="profile-avatar-wrapper"> <div class="profile-avatar-wrapper">
<ProfileAvatar <ProfileAvatar
v-if="memberData" v-if="memberData"
:member-id="memberData?.member_id" :member-id="memberData?.member_id"
:first-name="memberData?.first_name || user?.firstName" :first-name="memberData?.first_name || user?.firstName"
:last-name="memberData?.last_name || user?.lastName" :last-name="memberData?.last_name || user?.lastName"
size="default" size="large"
:show-badge="false" :show-badge="false"
/> />
<div class="online-indicator" /> <div class="online-indicator" />
@ -80,6 +81,7 @@
<div class="profile-name">{{ fullName }}</div> <div class="profile-name">{{ fullName }}</div>
<div class="profile-email">{{ email }}</div> <div class="profile-email">{{ email }}</div>
</div> </div>
</div>
<v-menu offset-y> <v-menu offset-y>
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<v-btn <v-btn
@ -534,20 +536,21 @@ watch(width, (newWidth) => {
} }
.profile-info { .profile-info {
flex: 1; text-align: center;
min-width: 0; width: 100%;
.profile-name { .profile-name {
font-size: 0.875rem; font-size: 0.925rem;
font-weight: 600; font-weight: 600;
color: rgb(31, 41, 55); color: rgb(31, 41, 55);
margin-bottom: 0.25rem;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.profile-email { .profile-email {
font-size: 0.75rem; font-size: 0.8rem;
color: rgb(107, 114, 128); color: rgb(107, 114, 128);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;