mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BUGFIX: Color picker appears behind theme editor (#2321)
* BUGFIX: Color picker appears behind theme editor * Remove unnecessary newline
This commit is contained in:
@@ -19,6 +19,19 @@ ReactDOM.render(
|
||||
document.getElementById("root"),
|
||||
);
|
||||
|
||||
// TODO: Remove this workaround when we get rid of material-ui-color and update to React 19+.
|
||||
/**
|
||||
* With built-in MUI components, we usually customize the zIndex via styleOverrides in src\Themes\ui\Theme.tsx. However,
|
||||
* material-ui-color uses a prefix for all class names; for example, instead of "MuiPopover-root", it's
|
||||
* "ColorPicker-MuiPopover-root". This library does not provide good ways to customize its components extensively, so we
|
||||
* have to find a hacky way to work around this problem.
|
||||
*/
|
||||
const styleElement = document.createElement("style");
|
||||
styleElement.textContent = `#color-popover {
|
||||
z-index: 20000 !important;
|
||||
}`;
|
||||
document.head.appendChild(styleElement);
|
||||
|
||||
setTimeout(newRemoteFileApiConnection, 2000);
|
||||
|
||||
function rerender(): void {
|
||||
|
||||
Reference in New Issue
Block a user