Skip to content
Snippets Groups Projects
Commit bbc2adb0 authored by ali asaria's avatar ali asaria
Browse files

This fixes an issue where if you have a modal open, it's hard to drag the...

This fixes an issue where if you have a modal open, it's hard to drag the entire app. But it also creates issues where the drag area is HUGE. Let's see...
parent 4d02b721
No related branches found
No related tags found
No related merge requests found
......@@ -224,12 +224,12 @@ export default function TrainingModalLoRA({
<Modal open={open}>
<ModalDialog
sx={{
width: '70vw',
width: '90dvw',
transform: 'translateX(-50%)', // This undoes the default translateY that centers vertically
top: '10vh',
top: '5dvh',
overflow: 'auto',
maxHeight: '80vh',
minHeight: '70vh',
maxHeight: '90dvh',
minHeight: '70dvh',
height: '100%',
}}
>
......
......@@ -61,6 +61,16 @@ button.hoverEditButton {
app-region: no-drag;
}
.MuiModal-backdrop {
--webkit-app-region: drag;
app-region: drag;
}
.MuiModalDialog-root {
--webkit-app-region: no-drag;
app-region: no-drag;
}
/* This is an unused style for a cool
spinning gradient border effect */
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment