|
@@ -369,16 +369,16 @@ export const ColorPicker = ({
|
|
}) => {
|
|
}) => {
|
|
const pickerButton = React.useRef<HTMLButtonElement>(null);
|
|
const pickerButton = React.useRef<HTMLButtonElement>(null);
|
|
const coords = pickerButton.current?.getBoundingClientRect();
|
|
const coords = pickerButton.current?.getBoundingClientRect();
|
|
- const mainmenuContentCoords = document
|
|
|
|
- .querySelector(".mainmenu-content")
|
|
|
|
|
|
+ const mainMenuContentCoords = document
|
|
|
|
+ .querySelector(".main-menu-content")
|
|
?.getBoundingClientRect();
|
|
?.getBoundingClientRect();
|
|
|
|
|
|
const top =
|
|
const top =
|
|
- coords && mainmenuContentCoords && coords.top - mainmenuContentCoords.top;
|
|
|
|
|
|
+ coords && mainMenuContentCoords && coords.top - mainMenuContentCoords.top;
|
|
const left =
|
|
const left =
|
|
coords &&
|
|
coords &&
|
|
- mainmenuContentCoords &&
|
|
|
|
- coords.right - mainmenuContentCoords.left;
|
|
|
|
|
|
+ mainMenuContentCoords &&
|
|
|
|
+ coords.right - mainMenuContentCoords.left;
|
|
|
|
|
|
return (
|
|
return (
|
|
<div>
|
|
<div>
|