Fix overflowing integrations in app view (#3313)
* Bump lockfile * Add flex-wrap to integrations * Add flex-wrap to links * Move integrations sections to upper card block
This commit is contained in:
parent
2532426c20
commit
228fe4d802
4 changed files with 12 additions and 5 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "saleor-dashboard",
|
"name": "saleor-dashboard",
|
||||||
"version": "3.12.0-dev",
|
"version": "3.13.0-dev",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "saleor-dashboard",
|
"name": "saleor-dashboard",
|
||||||
"version": "3.12.0-dev",
|
"version": "3.13.0-dev",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -51,9 +51,9 @@ const AppListCard: React.FC<AppListCardProps> = ({
|
||||||
<Box>
|
<Box>
|
||||||
<AppListCardDescription app={app} />
|
<AppListCardDescription app={app} />
|
||||||
<AppListCardLinks links={details.links} />
|
<AppListCardLinks links={details.links} />
|
||||||
|
<AppListCardIntegrations app={app} />
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<AppListCardIntegrations app={app} />
|
|
||||||
<AppListCardActions
|
<AppListCardActions
|
||||||
releaseDate={details.releaseDate}
|
releaseDate={details.releaseDate}
|
||||||
installationPending={details.installationPending}
|
installationPending={details.installationPending}
|
||||||
|
|
|
@ -17,7 +17,7 @@ const AppListCardIntegrations: React.FC<AppListCardIntegrationsProps> = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box as="ul" display="flex" flexDirection="row" gap={8}>
|
<Box as="ul" display="flex" flexDirection="row" flexWrap="wrap" gap={8}>
|
||||||
{app.integrations.map(integration => (
|
{app.integrations.map(integration => (
|
||||||
<Box
|
<Box
|
||||||
as="li"
|
as="li"
|
||||||
|
|
|
@ -13,7 +13,14 @@ const AppListCardLinks: React.FC<AppListCardLinksProps> = ({ links }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box as="div" display="flex" flexDirection="row" gap={7} marginBottom={6}>
|
<Box
|
||||||
|
as="div"
|
||||||
|
display="flex"
|
||||||
|
flexDirection="row"
|
||||||
|
flexWrap="wrap"
|
||||||
|
gap={7}
|
||||||
|
marginBottom={6}
|
||||||
|
>
|
||||||
{links.map(link => (
|
{links.map(link => (
|
||||||
<Box as="span" key={link.name}>
|
<Box as="span" key={link.name}>
|
||||||
<Text variant="body" size="small" color="textBrandDefault">
|
<Text variant="body" size="small" color="textBrandDefault">
|
||||||
|
|
Loading…
Reference in a new issue