Removing brand-header by css in full size chat, but not getting full-screen chat

My goal I am trying to achieve is to hide brand header when users are in full-size chat.

I manage to remove it by the following CSS:

body.has-full-page-chat {
    header.b-header{
        display:none;
    }
    .ember-application .d-header {
        margin-top: 0;
    }
}

The problem is that I get bar at the bottom with the same height as brand-header.

My guess is that some height-calculation doesn’t consider the removed brand-header. If I reload page it works fine.

Any pointers? :heart:

1 Like