diff --git a/package-lock.json b/package-lock.json index 6c50426e70a..1e7a3b85388 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4319,9 +4319,8 @@ } }, "@saleor/macaw-ui": { - "version": "0.3.0-a.6", - "resolved": "https://registry.npmjs.org/@saleor/macaw-ui/-/macaw-ui-0.3.0-a.6.tgz", - "integrity": "sha512-LnGsocG5Lk6I8puqhIHIChrBG3gLn76by0OPQXfkOS5AEIjHQpdj0qA4cBO2jfxu0MRYlVZoNJoKH/ykXiC7eg==", + "version": "github:saleor/macaw-ui#d6942921dadcccd7d1514ee8330db07cae211360", + "from": "github:saleor/macaw-ui#d694292", "requires": { "clsx": "^1.1.1", "lodash": "^4.17.21", diff --git a/src/apps/components/AppDetailsPage/AppDetailsPage.tsx b/src/apps/components/AppDetailsPage/AppDetailsPage.tsx index bfba5bc611f..1b46ea55b3a 100644 --- a/src/apps/components/AppDetailsPage/AppDetailsPage.tsx +++ b/src/apps/components/AppDetailsPage/AppDetailsPage.tsx @@ -1,4 +1,4 @@ -import { Card, CardContent, Typography } from "@material-ui/core"; +import { ButtonBase, Card, CardContent, Typography } from "@material-ui/core"; import CardSpacer from "@saleor/components/CardSpacer"; import CardTitle from "@saleor/components/CardTitle"; import Container from "@saleor/components/Container"; @@ -75,8 +75,9 @@ export const AppDetailsPage: React.FC = ({ description="link" /> - - + ) : ( diff --git a/src/apps/components/TokenCreateDialog/TokenCreateDialog.tsx b/src/apps/components/TokenCreateDialog/TokenCreateDialog.tsx index 715103f2267..765d3ddd9f5 100644 --- a/src/apps/components/TokenCreateDialog/TokenCreateDialog.tsx +++ b/src/apps/components/TokenCreateDialog/TokenCreateDialog.tsx @@ -7,6 +7,7 @@ import { TextField, Typography } from "@material-ui/core"; +import BackButton from "@saleor/components/BackButton"; import CardSpacer from "@saleor/components/CardSpacer"; import ConfirmButton from "@saleor/components/ConfirmButton"; import Form from "@saleor/components/Form"; @@ -106,9 +107,7 @@ const TokenCreateDialog: React.FC = props => { {step === "form" ? ( <> - + = ({ /> - + = props => { - + - )} + {showBackButton && } {variant !== "info" && ( ({ + input: { + height: 40 + }, root: { "&& fieldset": { borderColor: theme.palette.divider @@ -36,6 +39,9 @@ const AppChannelSelect: React.FC = ({ return (
= ({ [classes.dropShadow]: !isScrolledToBottom(anchor, position) })} > - + = props => { - + = props => { - + = props => { - + = ({
= props => ( + +); + +BackButton.displayName = "BackButton"; +export default BackButton; diff --git a/src/components/CardTitle/CardTitle.tsx b/src/components/CardTitle/CardTitle.tsx index 3d91cad8d25..ae0a8bde104 100644 --- a/src/components/CardTitle/CardTitle.tsx +++ b/src/components/CardTitle/CardTitle.tsx @@ -19,7 +19,7 @@ const CardTitle: React.FC = ({ onClick, ...rest }) => ( - + {children} ); diff --git a/src/components/ColumnPicker/ColumnPickerContent.tsx b/src/components/ColumnPicker/ColumnPickerContent.tsx index dfa5326e56b..1891e349a95 100644 --- a/src/components/ColumnPicker/ColumnPickerContent.tsx +++ b/src/components/ColumnPicker/ColumnPickerContent.tsx @@ -56,7 +56,7 @@ const useStyles = makeStyles( }, display: "grid", gridColumnGap: theme.spacing(3), - gridTemplateColumns: "repeat(3, 1fr)", + gridTemplateColumns: "repeat(3, 210px)", padding: theme.spacing(2, 3) }, contentContainer: { @@ -68,6 +68,14 @@ const useStyles = makeStyles( dropShadow: { boxShadow: `0px -5px 10px 0px ${theme.palette.divider}` }, + label: { + "& span": { + overflow: "hidden", + whiteSpace: "nowrap", + textOverflow: "ellipsis" + }, + marginRight: 0 + }, loadMoreLoaderContainer: { alignItems: "center", display: "flex", @@ -141,6 +149,7 @@ const ColumnPickerContent: React.FC = props => {
{columns.map(column => ( = props => { })} >
-