fixed visual bugs

This commit is contained in:
ari committed 2022-09-24 15:12:22 -04:00
1 parent 8fea6f1082
commit d7ca62afa7
11 files changed
+181 -103

No files matched your search

@@ -6,6 +6,11 @@
position: relative;
height: 100%;
min-width: calc(min(max(25vw, 35em), 50vw));
transition: min-width ease-in-out 500ms,
min-height ease-in-out 500ms,
height ease-in-out 500ms,
width ease-in-out 500ms,
opacity ease-in-out 500ms;
}
.automation-manager--sidebar-box--nav {
@@ -35,10 +40,14 @@
}
.automation-manager--sidebar.hidden {
width: 2.5em;
width: 3em;
min-width: 0;
}
.automation-manager--sidebar.hidden .add-btn {
display: none;
}
.automation-manager--sidebar.hidden .automation-manager--sidebar-box--nav,
.automation-manager--sidebar.hidden .automation-manager--sidebar-box--list,
.automation-manager--sidebar.hidden .automation-manager--sidebar-box--bottom-buttons .add-btn {
@@ -188,16 +188,14 @@ export function InputAutoComplete<T extends Option>(
const id = getID(option);
return (
<>
<SearchItem
key={label + id}
listProps={listProps}
id={id}
label={label}
searchTerm={inputValue}
onlyShowLabel={props.onlyShowLabel}
/>
</>
<SearchItem
key={label + id}
listProps={listProps}
id={id}
label={label}
searchTerm={inputValue}
onlyShowLabel={props.onlyShowLabel}
/>
);
}}
renderInput={(params) => (
@@ -225,12 +223,13 @@ export function InputAutoComplete<T extends Option>(
)}
renderTags={(tagValue, getTagProps) => {
const inner = (
<div className="input-autocomplete--tags">
<div className="input-autocomplete--tags" key={"inner"}>
{tagValue.map((option, index) => {
const label = getLabel(option);
const id = getID(option);
const tagProps = getTagProps({ index });
tagProps.className += " input-autocomplete--chip";
tagProps.key = tagProps.key ?? index;
return (
<Chip
size="medium"
@@ -258,7 +257,11 @@ export function InputAutoComplete<T extends Option>(
}
if (props.multiple) {
return (
<Badge badgeContent={tagValue.length} color="info">
<Badge
badgeContent={tagValue.length}
color="info"
key="badge-wrapper"
>
{inner}
</Badge>
);
@@ -15,6 +15,7 @@ const { make, componentMeta } = makeStory({
<div
style={{
maxWidth: 200,
margin: "5em",
}}
>
<InputEntity
@@ -127,18 +127,16 @@ export const InputTime: FC<InputTimeProps> = (props) => {
return (
<div className={["input-time", props.className ?? ""].join(" ")}>
{/* <InputLabel >{props.label}</InputLabel> */}
<div className="input-time--inner">
{fields.map((name) => {
{fields.map((name, index) => {
const label = prettyName(
lang.get(`TIME_UNITS_${name}`.toUpperCase())
);
return (
<TextField
key={name}
key={`${name}-${index}`}
variant="filled"
label={label}
defaultValue="00"
InputProps={{
disabled,
type: "number",
@@ -151,6 +149,7 @@ export const InputTime: FC<InputTimeProps> = (props) => {
})}
{!props.restrictEmpty && (
<ButtonIcon
key="disable-btn"
onClick={() => setDisabled(!disabled)}
icon={disabled ? <EditIcon /> : <CloseIcon />}
/>
+1 -1
View File
@@ -61,7 +61,7 @@
"TIME_UNITS_HOURS": "hours",
"TIME_UNITS_MINUTES": "minutes",
"TIME_UNITS_SECONDS": "seconds",
"TIME_UNITS_MILISECONDS": "milliseconds",
"TIME_UNITS_MILLISECONDS": "milliseconds",
"TIMEOUT": "Timeout",
"CONTINUTE_ON_TIMEOUT": "Continue on Timeout",
+1 -1
View File
@@ -71,7 +71,7 @@
"TIME_UNITS_HOURS": "heures",
"TIME_UNITS_MINUTES": "minutes",
"TIME_UNITS_SECONDS": "secondes",
"TIME_UNITS_MILISECONDS": "millisecondes",
"TIME_UNITS_MILLISECONDS": "millisecondes",
"TIMEOUT": "Temps libre",
"CONTINUTE_ON_TIMEOUT": "Continuer sur Timeout",
+1 -1
View File
@@ -61,7 +61,7 @@
"TIME_UNITS_HOURS": "ore",
"TIME_UNITS_MINUTES": "minuti",
"TIME_UNITS_SECONDS": "secondi",
"TIME_UNITS_MILISECONDS": "millisecondi",
"TIME_UNITS_MILLISECONDS": "millisecondi",
"TIMEOUT": "Tempo scaduto",
"CONTINUTE_ON_TIMEOUT": "Continua su Timeout",
-4
View File
@@ -43,10 +43,6 @@ body,
background: var(--mui-grey-400);
}
* {
transition: all 200ms ease-out;
}
.column {
display: flex;
flex-direction: column;