Closed thierbig closed 6 months ago
Hey @thierbig, thanks for opening this issue!
I merged your pull request. However, position: fixed
also has issues.
It makes the room header width 100%
of the viewport, overextending the element in some instances (including the project demo)
I think position: sticky
might be a better solution. Can you try this with your project? If that works, create a follow-up pull request, and I can get that merged if it passes the demo virtual test.
@aerovulpe
position: sticky
is also problematic. The default will revert back to absolute
:)
I went ahead and added parameters to fix the header styles instead: https://github.com/advanced-chat/vue-advanced-chat/pull/525
That way, we'll just have more customization on the styles for the header...
Yeah, I like this solution better!
@thierbig, version 2.1.0 has been released, incorporating your changes.
Thanks for your contributions!
<3
Describe the bug
When using
vue-advanced-chat
, the.vac-room-header
is styled withposition: absolute;
, which interferes with the actual header in my application, causing layout issues.Steps to reproduce
To help reproduce the issue, you can use the sandbox environment provided at https://github.com/advanced-chat/vue-advanced-chat-sandbox. Here are the steps:
vue-advanced-chat
..vac-room-header
overlaps or incorrectly positions itself relative to the static page header.Expected behavior
I expect that the
.vac-room-header
should not interfere with other elements outside of the chat component. Changing the CSS position property of.vac-room-header
fromabsolute
tofixed
should resolve this issue, ensuring that it stays positioned correctly without affecting the layout of other page elements.Screenshots
If applicable, add screenshots to help explain the problem. [Add screenshots here]
Device (please complete the following information)
Additional context
This styling issue may affect users who have other fixed or absolute elements in their applications. Adjusting the CSS directly within the component may help resolve this without forcing users to apply override styles externally.