updated pageHeader buttons layout for xs displays
This commit is contained in:
parent
2f5236e981
commit
3812fae7a0
4 changed files with 18 additions and 4 deletions
|
@ -11,7 +11,7 @@ const useStyles = makeStyles(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
block: {
|
block: {
|
||||||
[theme.breakpoints.down("sm")]: {
|
[theme.breakpoints.down("xs")]: {
|
||||||
"&&": {
|
"&&": {
|
||||||
display: "block"
|
display: "block"
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,17 @@ const useStyles = makeStyles(
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
display: "flex"
|
display: "flex",
|
||||||
|
[theme.breakpoints.down("xs")]: {
|
||||||
|
flexDirection: "column",
|
||||||
|
alignItems: "flex-start",
|
||||||
|
"& > *": {
|
||||||
|
width: "100%"
|
||||||
|
},
|
||||||
|
"& > *:not(first-child)": {
|
||||||
|
marginTop: theme.spacing(2)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
[theme.breakpoints.down("sm")]: {
|
[theme.breakpoints.down("sm")]: {
|
||||||
|
|
|
@ -57,7 +57,12 @@ export interface ProductListPageProps
|
||||||
const useStyles = makeStyles(
|
const useStyles = makeStyles(
|
||||||
theme => ({
|
theme => ({
|
||||||
columnPicker: {
|
columnPicker: {
|
||||||
marginRight: theme.spacing(3)
|
marginRight: theme.spacing(3),
|
||||||
|
[theme.breakpoints.down("xs")]: {
|
||||||
|
"& > button": {
|
||||||
|
width: "100%"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
marginRight: theme.spacing(2)
|
marginRight: theme.spacing(2)
|
||||||
|
|
|
@ -64,7 +64,6 @@ export const WarehouseListPage: React.FC<WarehouseListPageProps> = ({
|
||||||
<FormattedMessage {...sectionNames.configuration} />
|
<FormattedMessage {...sectionNames.configuration} />
|
||||||
</AppHeader>
|
</AppHeader>
|
||||||
<PageHeader
|
<PageHeader
|
||||||
inline
|
|
||||||
title={intl.formatMessage(sectionNames.warehouses)}
|
title={intl.formatMessage(sectionNames.warehouses)}
|
||||||
limit={
|
limit={
|
||||||
hasLimits(limits, "warehouses") && {
|
hasLimits(limits, "warehouses") && {
|
||||||
|
|
Loading…
Reference in a new issue