Fix name field width
This commit is contained in:
parent
8653b8cf3c
commit
6277ad4a83
5 changed files with 8 additions and 9 deletions
|
@ -15,7 +15,7 @@ import { CategoryDetails_category } from "../../types/CategoryDetails";
|
||||||
|
|
||||||
const styles = createStyles({
|
const styles = createStyles({
|
||||||
root: {
|
root: {
|
||||||
width: "50%"
|
width: "100%"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import { CollectionDetails_collection } from "../../types/CollectionDetails";
|
||||||
|
|
||||||
const styles = createStyles({
|
const styles = createStyles({
|
||||||
name: {
|
name: {
|
||||||
width: "80%"
|
width: "100%"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ const styles = (theme: Theme) =>
|
||||||
root: {
|
root: {
|
||||||
display: "grid",
|
display: "grid",
|
||||||
gridColumnGap: theme.spacing.unit * 2 + "px",
|
gridColumnGap: theme.spacing.unit * 2 + "px",
|
||||||
gridTemplateColumns: "3fr 1fr"
|
gridTemplateColumns: "1fr"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ const styles = (theme: Theme) =>
|
||||||
root: {
|
root: {
|
||||||
display: "grid",
|
display: "grid",
|
||||||
gridColumnGap: theme.spacing.unit * 2 + "px",
|
gridColumnGap: theme.spacing.unit * 2 + "px",
|
||||||
gridTemplateColumns: `3fr 1fr`
|
gridTemplateColumns: `1fr`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -69,7 +69,6 @@ export const ProductDetailsForm = withStyles(styles, {
|
||||||
description: "product name"
|
description: "product name"
|
||||||
})}
|
})}
|
||||||
name="name"
|
name="name"
|
||||||
rows={5}
|
|
||||||
value={data.name}
|
value={data.name}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -127,9 +127,6 @@ export default (colors: IThemeColors): Theme =>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MuiInputLabel: {
|
MuiInputLabel: {
|
||||||
disabled: {
|
|
||||||
color: `${fade(colors.primary, 0.4)} !important` as any
|
|
||||||
},
|
|
||||||
formControl: {
|
formControl: {
|
||||||
transform: "translate(0, 1.5px) scale(0.75)",
|
transform: "translate(0, 1.5px) scale(0.75)",
|
||||||
transformOrigin: "top left" as "top left",
|
transformOrigin: "top left" as "top left",
|
||||||
|
@ -142,7 +139,10 @@ export default (colors: IThemeColors): Theme =>
|
||||||
transform: "translate(14px, 14px) scale(1)"
|
transform: "translate(14px, 14px) scale(1)"
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
color: colors.input.text
|
color: colors.input.text,
|
||||||
|
"&$disabled": {
|
||||||
|
color: `${fade(colors.primary, 0.4)} !important` as any
|
||||||
|
}
|
||||||
},
|
},
|
||||||
shrink: {
|
shrink: {
|
||||||
// Negates x0.75 scale
|
// Negates x0.75 scale
|
||||||
|
|
Loading…
Reference in a new issue