fix(scada): align device panel collapse animation
This commit is contained in:
@@ -814,8 +814,12 @@ const SCADADeviceList: React.FC<SCADADeviceListProps> = ({
|
|||||||
variant="persistent"
|
variant="persistent"
|
||||||
hideBackdrop
|
hideBackdrop
|
||||||
sx={{
|
sx={{
|
||||||
width: isExpanded ? 360 : 0,
|
position: "absolute",
|
||||||
flexShrink: 0,
|
inset: 0,
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
overflow: "hidden",
|
||||||
|
pointerEvents: "none",
|
||||||
"& .MuiDrawer-paper": {
|
"& .MuiDrawer-paper": {
|
||||||
width: 360,
|
width: 360,
|
||||||
height: "860px",
|
height: "860px",
|
||||||
@@ -828,8 +832,9 @@ const SCADADeviceList: React.FC<SCADADeviceListProps> = ({
|
|||||||
"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
||||||
backdropFilter: "blur(8px)",
|
backdropFilter: "blur(8px)",
|
||||||
opacity: 0.95,
|
opacity: 0.95,
|
||||||
transition: "all 0.3s ease-in-out",
|
transition: "transform 0.3s ease-in-out, opacity 0.3s ease-in-out",
|
||||||
border: "none",
|
border: "none",
|
||||||
|
pointerEvents: "auto",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user