Skip to content

Commit

Permalink
Fix alignment for load icons button
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Sep 8, 2024
1 parent 489da56 commit 762110d
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions dapps/suiftly.walrus.site/packages/frontend/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,31 @@ const App: FC = () => {
<LabeledLinkSuiftly label="icon96x96" blobId={blobId} />
<LabeledLinkSuiftly label="icon256x256" blobId={blobId} />
<br />
{!showIcons && (
<div style={{ textAlign: 'center' }}>
<Button onClick={handleShowIcons}>Show Icons</Button>
</div>
)}
{showIcons && (
<Flex direction="row" justify="center" align="center" gap="2" mt="4">
<div id="icons-container-48x48"></div>
<div id="icons-container-96x96"></div>
<div id="icons-container-256x256"></div>
</Flex>
)}
<div
id="icons-container"
style={{
display: 'flex',
justifyContent: 'center',
marginTop: '20px',
}}
></div>
<Flex
direction="column"
align="center"
justify="center"
style={{ height: '256px' }}
>
{!showIcons && (
<div style={{ textAlign: 'center' }}>
<Button onClick={handleShowIcons}>Load Icons</Button>
</div>
)}
{showIcons && (
<Flex
direction="row"
justify="center"
align="center"
gap="2"
mt="4"
>
<div id="icons-container-48x48"></div>
<div id="icons-container-96x96"></div>
<div id="icons-container-256x256"></div>
</Flex>
)}
</Flex>
<br />
<br />
<h2 className="text-xl font-semibold">
Expand Down

0 comments on commit 762110d

Please sign in to comment.