consolidated ismobile
This commit is contained in:
1 parent
f99cb84658
commit
e4af85cdfa
14 files changed
+100
-106
No files matched your search
@@ -0,0 +1,33 @@
|
||||
.mobile .automation-manager--sidebar.shown {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
min-width: 100vw;
|
||||
}
|
||||
|
||||
.mobile .automation-manager--sidebar .automation-manager--sidebar-box--bottom-buttons .hide-btn {
|
||||
transform: rotate(-90deg);
|
||||
left: 0.5em;
|
||||
background-color: var(--mui-background-paper);
|
||||
height: 2em;
|
||||
width: 2em;
|
||||
}
|
||||
|
||||
.mobile .automation-manager--sidebar.hidden {
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.mobile .automation-manager--sidebar.hidden .automation-manager--sidebar-box--nav,
|
||||
.mobile .automation-manager--sidebar.hidden .automation-manager--sidebar-box--list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile .automation-manager--sidebar.hidden .automation-manager--sidebar-box--bottom-buttons {
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.mobile .automation-manager--sidebar.hidden .automation-manager--sidebar-box--bottom-buttons .hide-btn {
|
||||
transform: rotate(90deg);
|
||||
top: 1em;
|
||||
z-index: 100;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import "./index.css";
|
||||
import "./index.mobile.css";
|
||||
|
||||
import { FC, useState } from "react";
|
||||
|
||||
@@ -92,7 +93,14 @@ export const AutomationManagerSidebar: FC<AutomationManagerSidebarProps> = ({
|
||||
))}
|
||||
</div>
|
||||
<div className="automation-manager--sidebar-box--bottom-buttons">
|
||||
<Button onClick={onAutomationAdd} color="primary" className="add-btn">
|
||||
<Button
|
||||
onClick={() => {
|
||||
onAutomationAdd();
|
||||
setHidden(true);
|
||||
}}
|
||||
color="primary"
|
||||
className="add-btn"
|
||||
>
|
||||
Add
|
||||
</Button>
|
||||
<ButtonIcon
|
||||
|
||||
Reference in new issue
Block a user