Skip to content

Commit

Permalink
fix margins
Browse files Browse the repository at this point in the history
  • Loading branch information
maxaleks committed Jul 22, 2024
1 parent 8baf669 commit ad7d8d1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/marketplace/Banner/FeaturedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const FeaturedApp = ({
padding={ 5 }
background={ backgroundColor }
mb={ 2 }
mt={ 6 }
>
<Skeleton
isLoaded={ !isLoading }
Expand Down
1 change: 1 addition & 0 deletions ui/marketplace/Banner/FeaturedAppMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const FeaturedAppMobile = ({
padding={{ base: 3, sm: '20px' }}
role="group"
background={ useColorModeValue('purple.50', 'whiteAlpha.100') }
mt={ 6 }
>
<Flex
flexDirection="row"
Expand Down
1 change: 1 addition & 0 deletions ui/marketplace/Banner/IframeBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const IframeBanner = ({ contentUrl, linkUrl }: { contentUrl: string; linkUrl: st
w="100%"
borderRadius="md"
mb={{ base: 0, sm: 2 }}
mt={ 6 }
overflow="hidden"
>
<Link
Expand Down
11 changes: 10 additions & 1 deletion ui/pages/Marketplace.pw.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Box } from '@chakra-ui/react';
import React from 'react';

import { apps as appsMock } from 'mocks/apps/apps';
Expand Down Expand Up @@ -55,7 +56,15 @@ test.describe('mobile', () => {
test.use({ viewport: devices['iPhone 13 Pro'].viewport });

test('base view', async({ render }) => {
const component = await render(<Marketplace/>);
const component = await render(
<Box>
{ /* Added a fake header because without the ActionBar works incorrectly without it */ }
<Box h="100px" backgroundColor="#dbdbdb" p={ 1 }>
Header
</Box>
<Marketplace/>
</Box>,
);

await expect(component).toHaveScreenshot();
});
Expand Down
1 change: 1 addition & 0 deletions ui/pages/Marketplace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const Marketplace = () => {
<>
<PageTitle
title="DAppscout"
mb={ 2 }
contentAfter={ (isMobile && links.length > 1) ? (
<Menu>
<MenuButton
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad7d8d1

Please sign in to comment.