cleaned up options styles
This commit is contained in:
1 parent
4d9afbe26b
commit
0088dd8448
11 files changed
+106
-104
No files matched your search
@@ -1,3 +1,7 @@
|
||||
.condition-node--settings {
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
.condition-node--settings--icons {
|
||||
display: inline-block;
|
||||
max-width: 5em;
|
||||
@@ -15,4 +19,16 @@
|
||||
|
||||
.condition-node--settings button.Mui-disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
.condition-node--settings .speed-dial--button {
|
||||
max-width: 4em;
|
||||
max-height: 4em;
|
||||
height: 4em;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
.condition-node--settings .speed-dial--button:hover button {
|
||||
background-color: var(--secondary-accent);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
.condition-node--settings.mobile {
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
.condition-node--settings.mobile .speed-dial--button {
|
||||
max-width: 4em;
|
||||
max-height: 4em;
|
||||
height: 4em;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
.condition-node--settings.mobile .speed-dial--button:hover button {
|
||||
background-color: var(--secondary-accent);
|
||||
}
|
||||
|
||||
.condition-node--settings.mobile .speed-dial--list.open {
|
||||
top: 3.5em;
|
||||
/* left: 0.5em; */
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import "./ConditionNodeSettings.css";
|
||||
import "./ConditionNodeSettings.mobile.css";
|
||||
|
||||
import { ButtonIcon, ButtonIconProps } from "components/Icons/ButtonIcons";
|
||||
import CodeOutlinedIcon from "@mui/icons-material/CodeOutlined";
|
||||
@@ -64,38 +63,26 @@ export const ConditionNodeSettings: FC<ConditionNodeSettingsProps> = (
|
||||
});
|
||||
}
|
||||
// render
|
||||
if (isMobile) {
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
"condition-node--settings mobile",
|
||||
props.isEdited ? "edited" : "",
|
||||
].join(" ")}
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
"condition-node--settings mobile",
|
||||
props.isEdited ? "edited" : "",
|
||||
].join(" ")}
|
||||
>
|
||||
<SpeedDial
|
||||
icon={
|
||||
<ButtonIcon
|
||||
icon={<SettingsApplicationsIcon />}
|
||||
color={props.isEdited ? "success" : "default"}
|
||||
/>
|
||||
}
|
||||
direction="left"
|
||||
>
|
||||
<SpeedDial
|
||||
icon={
|
||||
<ButtonIcon
|
||||
icon={<SettingsApplicationsIcon />}
|
||||
color={props.isEdited ? "success" : "default"}
|
||||
/>
|
||||
}
|
||||
direction="column"
|
||||
>
|
||||
{buttons.map((opt, i) => (
|
||||
<ButtonIcon key={i} {...opt} />
|
||||
))}
|
||||
</SpeedDial>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<div className="condition-node--settings--wrap">
|
||||
<div className="condition-node--settings--icons">
|
||||
{buttons.map((opt, i) => (
|
||||
<ButtonIcon key={i} {...opt} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
{buttons.map((opt, i) => (
|
||||
<ButtonIcon key={i} {...opt} />
|
||||
))}
|
||||
</SpeedDial>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user