Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix small issues
Krzysztof Bialoglowicz815b6e1501cf
diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsxindex d07ae42d2b..0db6bbf35e 100644--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx@@ -91,16 +91,29 @@ const styles = (theme: Theme) =>marginTop: 12,transform: "rotate(180deg)"},+ "&:hover": {+ background: "#E6F3F3"+ },background: theme.palette.background.paper,+ border: `solid 1px #EAEAEA`,borderRadius: "50%",cursor: "pointer",height: 32,position: "absolute",right: -16,top: 65,+ transition: "background 0.2s",width: 32,zIndex: 99},+ isMenuSmallDark: {+ "&:hover": {+ background:+ "linear-gradient(0deg, rgba(25, 195, 190, 0.1), rgba(25, 195, 190, 0.1)), #2E2F31"+ },+ border: `solid 1px #252728`,+ transition: "background 0.2s"+ },isMenuSmallHide: {"& svg": {transform: "rotate(0deg)"@@ -246,7 +259,7 @@ interface AppLayoutProps {const AppLayout = withStyles(styles, {name: "AppLayout"})(- withRouter<AppLayoutProps & RouteComponentProps<any>, any>(+ withRouter<AppLayoutProps & RouteComponentProps<any>>(({classes,children,@@ -316,7 +329,8 @@ const AppLayout = withStyles(styles, {<Hidden smDown><divclassName={classNames(classes.isMenuSmall, {- [classes.isMenuSmallHide]: isMenuSmall+ [classes.isMenuSmallHide]: isMenuSmall,+ [classes.isMenuSmallDark]: isDark})}onClick={handleIsMenuSmall}>diff --git a/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx b/saleor/static/dashboard-next/components/AppLayout/MenuList.tsxindex 5f88428c5c..45b33bdd57 100644--- a/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx@@ -17,7 +17,6 @@ import { configurationMenu, configurationMenuUrl } from "../../configuration";import i18n from "../../i18n";import { createHref } from "../../misc";import { orderDraftListUrl, orderListUrl } from "../../orders/urls";-import { drawerWidth, drawerWidthExpanded } from "./consts";import MenuNested from "./MenuNested";import { IMenuItem } from "./menuStructure";@@ -48,9 +47,18 @@ const styles = (theme: Theme) =>"& path": {fill: theme.palette.primary.main},+ "&:before": {+ borderLeft: `solid 2px ${theme.palette.primary.main}`,+ content: "''",+ height: 33,+ left: -25,+ position: "absolute",+ top: 8+ },color: theme.palette.primary.main},- cursor: "pointer"+ cursor: "pointer",+ position: "relative"},menuList: {display: "flex",@@ -63,7 +71,7 @@ const styles = (theme: Theme) =>menuListItem: {alignItems: "center",display: "block",- marginTop: theme.spacing.unit * 2,+ marginBottom: theme.spacing.unit * 5,paddingLeft: 0,textDecoration: "none",transition: theme.transitions.duration.standard + "ms"@@ -75,18 +83,21 @@ const styles = (theme: Theme) =>"& path": {color: theme.palette.primary.main,fill: theme.palette.primary.main- },- "&:before": {- background: theme.palette.primary.main,- content: "''",- height: "100%",- left: -32,- position: "absolute",- width: 5}},- menuListItemSmall: {- marginTop: theme.spacing.unit * 2+ menuListItemOpen: {+ "&:after": {+ borderBottom: `10px solid transparent`,+ borderLeft: `10px solid ${theme.palette.background.paper}`,+ borderTop: `10px solid transparent`,+ content: "''",+ height: 0,+ position: "absolute",+ right: -35,+ top: 15,+ width: 0+ },+ position: "relative"},menuListItemText: {"&:hover": {@@ -99,7 +110,7 @@ const styles = (theme: Theme) =>opacity: 1,paddingLeft: 16,textTransform: "uppercase",- transition: "opacity 0.2s ease"+ transition: "opacity 0.2s ease 0.1s"},menuListItemTextHide: {opacity: 0,@@ -113,7 +124,7 @@ const styles = (theme: Theme) =>background: "#000",cursor: "pointer",height: "100vh",- left: drawerWidthExpanded,+ left: 0,opacity: 0.2,position: "absolute",top: 0,@@ -121,15 +132,7 @@ const styles = (theme: Theme) =>zIndex: -2},subMenuDrawerOpen: {- "&$subMenuDrawerSmall": {- left: drawerWidthExpanded,- width: `calc(100vw - ${drawerWidthExpanded}px)`- },- width: `calc(100vw - ${drawerWidthExpanded}px)`- },- subMenuDrawerSmall: {- left: drawerWidth,- width: `calc(100vw - ${drawerWidth}px)`+ width: `100vw`}});@@ -220,12 +223,15 @@ const MenuList = withStyles(styles, { name: "MenuList" })(return (<divclassName={classNames(classes.menuListItem, {- [classes.menuListItemSmall]: !isMenuSmall,[classes.menuListItemActive]: isAnyChildActive})}><div- className={classes.menuItemHover}+ className={classNames(classes.menuItemHover, {+ [classes.menuListItemOpen]:+ menuItem.ariaLabel === activeSubMenu.label &&+ activeSubMenu.isActive+ })}onClick={() => handleSubMenu(menuItem.ariaLabel)}><SVG@@ -256,8 +262,7 @@ const MenuList = withStyles(styles, { name: "MenuList" })(<divonClick={event => closeSubMenu(null, event)}className={classNames(classes.subMenuDrawer, {- [classes.subMenuDrawerOpen]: activeSubMenu.isActive,- [classes.subMenuDrawerSmall]: !isMenuSmall+ [classes.subMenuDrawerOpen]: activeSubMenu.isActive})}/></div>@@ -267,7 +272,6 @@ const MenuList = withStyles(styles, { name: "MenuList" })(return (<aclassName={classNames(classes.menuListItem, {- [classes.menuListItemSmall]: !isMenuSmall,[classes.menuListItemActive]: isActive(menuItem)})}href={createHref(menuItem.url)}@@ -300,9 +304,7 @@ const MenuList = withStyles(styles, { name: "MenuList" })(.includes(menuItem.permission)).length > 0 && (<a- className={classNames(classes.menuListItem, {- [classes.menuListItemSmall]: !isMenuSmall- })}+ className={classes.menuListItem}href={createHref(configurationMenuUrl)}onClick={event => onMenuItemClick(configurationMenuUrl, event)}>diff --git a/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx b/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsxindex 1fe571d137..1911ddd2de 100644--- a/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx@@ -34,7 +34,7 @@ const styles = (theme: Theme) =>position: "absolute",right: 0,top: 0,- transition: "right 1s ease",+ transition: "right 0.2s ease",width: 300,zIndex: -1},diff --git a/saleor/static/dashboard-next/components/AppLayout/ResponsiveDrawer.tsx b/saleor/static/dashboard-next/components/AppLayout/ResponsiveDrawer.tsxindex e04be9c5e4..cc8e026c02 100644--- a/saleor/static/dashboard-next/components/AppLayout/ResponsiveDrawer.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/ResponsiveDrawer.tsx@@ -18,12 +18,12 @@ const styles = (theme: Theme) =>overflow: "visible",padding: 0,position: "fixed" as "fixed",- transition: "width 0.5s ease",+ transition: "width 0.2s ease",width: drawerWidthExpanded},drawerDesktopSmall: {overflow: "visible",- transition: "width 0.5s ease",+ transition: "width 0.2s ease",width: drawerWidth},drawerMobile: {