Change avatar position

Please tell me how to display an avatar this way

Like this

Theme: FKB Pro - Social theme

2 Likes

If you do that, you will lose the ability to see the avatar sliding up or down. Is that okay?

2 Likes

Yes, so be it

1 Like

Can you try this Desktop CSS?

.topic-post {
    $avatar_width: 60px;
    $topic_margin_body: 1em;
    
    .topic-body {
        width: calc(690px + var(--topic-body-width-padding) * 2 + $avatar_width + $topic_margin_body) !important;
    }
    
   .topic-avatar {
        position: absolute !important;
        left: calc(var(--topic-body-width-padding) * 2 + $topic_margin_body);
        margin-bottom: 0 !important;
    }
    
    &.sticky-avatar .topic-avatar {
        top: unset !important;
    }
    
    .names.trigger-user-card {
        margin-left: calc(var(--topic-avatar-width) + var(--topic-avatar-width) / 2);
        height: $avatar_width;
    }
}

image

2 Likes

Thanks, this helped. Now how can I increase the width of the main block in topics?

I’ve adjusted the CSS above. I did not see it because my screen was split in half. :+1:

It didn’t work

Try again; I updated again right after.

It works on my side:

Arc_X4TUccN7P8

Oh yes, it works. Thanks a lot :heart:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.