-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: differentiate action popup and popup, improve responsiveness a…
…nd refactor footers, ref #5260
- Loading branch information
1 parent
686a823
commit 4e52f6c
Showing
43 changed files
with
268 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!doctype html> | ||
<html class="mode__action-popup light"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link href="/assets/base.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<div id="splash-screen"></div> | ||
<div id="app"></div> | ||
<script src="/assets/splash-screen.js"></script> | ||
<script src="browser-polyfill.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Flex, FlexProps } from 'leather-styles/jsx'; | ||
|
||
import { HasChildren } from '@app/common/has-children'; | ||
|
||
export function ButtonRow({ children, ...props }: HasChildren & FlexProps) { | ||
return ( | ||
<Flex flexDirection="column" gap="space.04" width="100%" {...props}> | ||
{children} | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { FlexProps } from 'leather-styles/jsx'; | ||
|
||
import type { HasChildren } from '@app/common/has-children'; | ||
import { Footer } from '@app/components/layout'; | ||
|
||
export function CardFooter({ children, ...props }: HasChildren & FlexProps) { | ||
return ( | ||
<Footer position="absolute" borderBottomRadius="md" borderTop="none" {...props}> | ||
{children} | ||
</Footer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { Card } from './card'; | ||
export { ButtonRow } from './components/button-row'; | ||
export { CardFooter } from './components/card-footer'; | ||
export { CardContent } from './components/card-content'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
import type { ReactNode } from 'react'; | ||
import { Flex, FlexProps } from 'leather-styles/jsx'; | ||
|
||
import { Flex, styled } from 'leather-styles/jsx'; | ||
import type { HasChildren } from '@app/common/has-children'; | ||
|
||
interface FooterProps { | ||
children: ReactNode; | ||
variant?: 'page' | 'card'; | ||
flexDirection?: 'column' | 'row'; | ||
} | ||
|
||
export function Footer({ children, variant = 'page', flexDirection = 'column' }: FooterProps) { | ||
export function Footer({ children, ...props }: HasChildren & FlexProps) { | ||
return ( | ||
<styled.footer | ||
<Flex | ||
gap="space.05" | ||
p="space.05" | ||
bottom={0} | ||
width="100vw" | ||
maxWidth={variant === 'card' ? 'pageWidth' : '100%'} | ||
maxWidth="100%" | ||
zIndex={1} | ||
minHeight="footerHeight" | ||
position={variant === 'card' ? ' absolute' : 'fixed'} | ||
position="fixed" | ||
borderBottomRadius="md" | ||
bg={variant === 'page' ? 'ink.background-primary' : undefined} | ||
borderTop={variant === 'page' ? ' default' : 'none'} | ||
bg="ink.background-primary" | ||
borderTop="default" | ||
{...props} | ||
> | ||
<Flex flexDirection={flexDirection} width="100%" gap="space.04"> | ||
{children} | ||
</Flex> | ||
</styled.footer> | ||
{children} | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
src/app/features/psbt-signer/components/psbt-request-actions.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.