Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the OpenAtrium distribution, the chat doesn't work properly.
I'm unable to type text into a chat.
I will look in to this myself if I have some time, but it would be great to see this fixed.
Kind regards,
Comments
Comment #1
darklrd CreditAttribution: darklrd commentedWhich polling method are you using? Thanks
Comment #2
Novitsh CreditAttribution: Novitsh commentedI'm using the normal AJAX method.
Regards,
Comment #3
cgove CreditAttribution: cgove commentedThis is due to OA's navbar css:
#navbar, #navbar * {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: rgba(0,0,0,0);
text-align: left;
-webkit-text-size-adjust: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
vertical-align: baseline;
}
Resetting these in a custom sub-theme fixed it for me:
#navbar #drupalchat-wrapper * {
-moz-box-sizing: content-box !important;
-webkit-box-sizing: content-box !important;
box-sizing: content-box !important;
-webkit-tap-highlight-color: inherit !important;
-webkit-text-size-adjust: auto !important;
-webkit-touch-callout: inherit !important;
-webkit-user-select: auto !important;
vertical-align: inherit !important;
}
This still messes with the margins and paddings, but those can be set again individually.
I wonder why drupalchat is residing inside the navbar in the first place...
Comment #4
Novitsh CreditAttribution: Novitsh commentedThis worked for me also, thanks.
It might be good to have those important statements in the css core of the module?
Comment #5
darklrd CreditAttribution: darklrd commentedIs drupalchat-wrapper div somehow present inside nav div? Thanks.
Comment #6
Novitsh CreditAttribution: Novitsh commentedIt appears that drupalchat-wrapper is being set in following HTML line under the footer in OA:
<nav id="navbar" role="navigation" class="navbar clearfix navbar-processed">
Comment #7
darklrd CreditAttribution: darklrd commentedYes, drupalchat-wrapper div inserts itself just above body closing tag (). Thank you.
Comment #8
Novitsh CreditAttribution: Novitsh commentedMaybe the CSS solution by cgove can be included in the default CSS?