mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: Hide chatbot button on mobile devices (#15790)
Closes: https://github.com/fleetdm/confidential/issues/4757 Changes: - Updated layout.less to hide the website chat button when the chat is closed on screen sizes <575px. (The chat can still be opened on mobile devices by clicking a "talk to an expert" button)
This commit is contained in:
parent
f5af49f766
commit
51f032c87e
1 changed files with 9 additions and 0 deletions
9
website/assets/styles/layout.less
vendored
9
website/assets/styles/layout.less
vendored
|
|
@ -409,6 +409,15 @@ body.detected-mobile {
|
|||
height: 371px;
|
||||
}
|
||||
}
|
||||
// For hiding the hubspot chat widget on mobile devices.
|
||||
#hubspot-messages-iframe-container iframe[aria-label='Chat Widget'] {
|
||||
display: none !important;//lesshint-disable-line importantRule
|
||||
}
|
||||
html.hs-messages-widget-open, html.hs-messages-mobile.hs-messages-widget-open {// Shows the hubspot chat widget when the widget is opened from a "Talk to an expert" button.
|
||||
#hubspot-messages-iframe-container iframe[aria-label='Chat Widget'] {
|
||||
display: initial !important;//lesshint-disable-line importantRule
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 490px) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue