Closed andfinally closed 1 year ago
Addressing 14589-gh-Automattic/woocommerce.com – HappyChat client on WooCommerce.com is getting inordinately big in some browsers.
I'm not able to reproduce this exactly, and I still have no idea what causes it – although I've observed two possibly related phenomena:
I need help with:
.happychat__page
height
99vh
768px
18vh
.happychat__composer
.happychat__conversation::after
node-sass
sass
src/config/development.local.json
{ "css_url": "http://localhost:9000/" }
npm install && npm start
height: 1500px; outline: 1px solid red;
/end
targets/standalone/example-woo.html
canChat: true, entry: 'ENTRY_CHAT',
D89154-code
Addressing 14589-gh-Automattic/woocommerce.com – HappyChat client on WooCommerce.com is getting inordinately big in some browsers.
I'm not able to reproduce this exactly, and I still have no idea what causes it – although I've observed two possibly related phenomena:
I need help with:
search input dropdown list is very tall, it makes the iframe a lot taller..happychat__page
some JS keeps incrementing the iframe'sheight
attribute.Changes in this PR
.happychat__page
from99vh
to768px
, to avoid chat pane getting too tall.18vh
height of.happychat__composer
, to avoid composer pane getting too tall..happychat__conversation::after
element, so messages align to the bottom of the conversation window.node-sass
withsass
– M1 macs don't supportnode-sass
very well.Testing
src/config/development.local.json
, create it, and paste this in:npm install && npm start
.height: 1500px; outline: 1px solid red;
to the iframe, to mimic an overly tall container./end
.targets/standalone/example-woo.html
:Deployment
D89154-code
Screenshots
Possible cause of tall container
Chat pane is limited to 768px high, composer pane is about 66px high, and messages are aligned at the bottom