app/(default-layout)/conversation/components/conversation-preview/ConversationPreview.module.scss
.wrapper {
    display: flex;
    align-items: center;
    margin: 0 8px;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    overflow: hidden;
    &:hover {
        background-color: var(--gray-color-low);
        cursor: pointer;
    }
}

.wrapper.active {
    background-color: var(--gray-color);
}

.avatar-wrapper {
    position: relative;
    width: fit-content;
}

.avatar {
    margin-right: 8px;
}
.content {
    width: 100%;
}

.name {
    display: block;
    max-width: calc(100% - 44px - 24px);
    font-family: Lora;
    color: var(--foreground);
    font-size: 1.5rem;
    overflow: hidden;
    text-wrap: nowrap;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.status {
    position: absolute;
    bottom: 4px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: red;
    border: 1px solid var(--white);
}

.status.online {
    background-color: green;
}

.message {
    flex: 1;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-family);
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 600;
    margin-right: 40px;
}

.message-text {
    flex: 1;
    max-width: calc(100% - 80px);
    overflow: hidden;
    text-wrap: nowrap;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.time {
    flex-shrink: 0;
    text-wrap: nowrap;
}

.time::before {
    content: '•';
    margin-right: 4px;
}

.time.no-before::before {
    content: '';
}

.isReaded {
    .name {
        font-weight: 100;
    }
    .message {
        color: var(--text-low-color);
        font-weight: 400;
    }
}
