w-lab-app/src/components/domains/chat/ChatHeader/ChatHeader.module.scss
gofnnp 502df85f97 AW-496-edits
edits
2025-07-27 09:20:27 +04:00

79 lines
1.3 KiB
SCSS

.header {
position: sticky;
top: 0;
left: 0;
z-index: 100;
padding: 12px;
width: 100%;
max-width: 560px;
min-height: 71px;
background-color: #fff;
border-bottom: 1px solid #e5e7eb;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
}
.back {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
& > .badge.badge {
background-color: #fbbf24;
min-width: 24px;
min-height: 24px;
max-width: 28px;
max-height: 28px;
}
}
.time {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 4px;
& > .timeText {
opacity: 0.8;
}
}
.chatInfo {
display: flex;
align-items: center;
gap: 10px;
& > .avatar {
border-radius: 50%;
width: 48px;
height: 48px;
// background-color: #f3f4f6;
background: linear-gradient(90deg, #3b82f6 0%, #4f46e5 100%);
}
& > .chatInfoContent {
display: grid;
grid-template-rows: 1fr 14px;
justify-items: start;
gap: 2px;
& > .name {
font-size: 18px;
// line-height: 28px;
color: #111827;
position: relative;
& > .onlineIndicator {
position: absolute;
top: 0;
right: -12px;
width: 8px;
height: 8px;
border: none;
}
}
}
}