Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I hide the header completely? #395

Closed
abbjetmus opened this issue Nov 17, 2022 · 2 comments
Closed

How do I hide the header completely? #395

abbjetmus opened this issue Nov 17, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@abbjetmus
Copy link

Hi I would like to hide the header completely so that it doesn't take up any space?
If I set display none from developer tools it is removed but can't do it from my application.
Would be nice to have a prop for this, can't see there are any right now?

<template>
  <vue-advanced-chat
  >
    <!-- eslint-disable-next-line vue/no-deprecated-slot-attribute -->
    <div slot="room-header">
      <div></div>
    </div>
  </vue-advanced-chat>
</template>
.vac-room-header {
  display: none !important;
}
@abbjetmus abbjetmus added the bug Something isn't working label Nov 17, 2022
@antoine92190
Copy link
Collaborator

You can override css like this:

const style = document.createElement('style')
style.innerHTML = '.vac-room-header { display: none !important; }'
this.$refs.chatWindow.shadowRoot.appendChild(style)

@abbjetmus
Copy link
Author

That worked! Thank you and for the amazing component!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants