fix(upgrade-plans): adjust minimum seat value logic and enhance HubSpot widget dark mode styles
- Updated the minimum seat value logic in the upgrade plans component to allow the current seat count. - Added CSS overrides for the HubSpot widget to ensure proper display in dark mode, removing unwanted backgrounds and shadows.
This commit is contained in:
@@ -70,7 +70,7 @@ const UpgradePlans = () => {
|
|||||||
|
|
||||||
const step = 5;
|
const step = 5;
|
||||||
const maxSeats = 90;
|
const maxSeats = 90;
|
||||||
const minValue = currentSeats + 1;
|
const minValue = currentSeats;
|
||||||
const options: { value: number; disabled: boolean }[] = [];
|
const options: { value: number; disabled: boolean }[] = [];
|
||||||
|
|
||||||
// Always show 1-5, but disable if less than minValue
|
// Always show 1-5, but disable if less than minValue
|
||||||
|
|||||||
@@ -180,3 +180,42 @@ body.dark .overview-stat-card .ant-card-body,
|
|||||||
.ql-snow .ql-stroke {
|
.ql-snow .ql-stroke {
|
||||||
stroke: #6c757d !important;
|
stroke: #6c757d !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* HubSpot Widget Dark Mode Fixes */
|
||||||
|
html.dark #hubspot-messages-iframe-container {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark #hubspot-messages-iframe-container iframe {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Target the HubSpot widget container */
|
||||||
|
html.dark .hs-messages-widget-open {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove white background from HubSpot elements */
|
||||||
|
html.dark #hs-messages-iframe-container,
|
||||||
|
html.dark .hs-messages-iframe-container {
|
||||||
|
background: transparent !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure the iframe wrapper has no background */
|
||||||
|
html.dark iframe#hs-messages-iframe {
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Target the widget launcher button area */
|
||||||
|
html.dark .hs-messages-widget,
|
||||||
|
html.dark .hs-messages-widget-container {
|
||||||
|
background: transparent !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove any box shadow that might appear white */
|
||||||
|
html.dark #hubspot-messages-iframe-container,
|
||||||
|
html.dark .hs-messages-widget {
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user