Skip to content

Commit

Permalink
feat(neuron-ui): adjust the layout of the qr scanner dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Sep 19, 2019
1 parent 6d25d67 commit 5d91d90
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/neuron-ui/src/widgets/QRScanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,16 @@ const QRScanner = ({ title, label, onConfirm, styles }: QRScannerProps) => {
</button>
<Dialog hidden={!open} onDismiss={onDismiss} maxWidth="900px" minWidth="500xp">
<h1>{title}</h1>
<div>
<div style={{ display: 'flex', justifyContent: 'center' }}>
<canvas ref={canvasRef} />
</div>
<DialogFooter>
<DialogFooter
styles={{
actionsRight: {
width: '100%',
},
}}
>
<TextField readOnly value={data} label={label} underlined />
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton onClick={onDismiss}>{t('common.cancel')}</DefaultButton>
Expand Down

0 comments on commit 5d91d90

Please sign in to comment.