Skip to content

Commit

Permalink
use left section for button
Browse files Browse the repository at this point in the history
  • Loading branch information
matmair committed Aug 26, 2024
1 parent 07f6ec9 commit bea0b1c
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/frontend/src/components/items/QRCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,22 @@ export const QRCodeLink = ({ mdl_prop }: { mdl_prop: QrCodeType }) => {
<Divider />
</>
) : null}
<Flex align="flex-end" w="100%">
<ActionIcon variant="subtle" onClick={toggleIsScanning.toggle}>
<IconQrcode />
</ActionIcon>
<TextInput
label={t`Barcode`}
value={barcode}
onChange={(event) => setBarcode(event.currentTarget.value)}
placeholder={t`Scan barcode data here using barcode scanner`}
w="100%"
/>
</Flex>
<TextInput
label={t`Barcode`}
value={barcode}
onChange={(event) => setBarcode(event.currentTarget.value)}
placeholder={t`Scan barcode data here using barcode scanner`}
leftSection={
<ActionIcon
variant="subtle"
onClick={toggleIsScanning.toggle}
size="input-sm"
>
<IconQrcode />
</ActionIcon>
}
w="100%"
/>
<Button color="green" onClick={() => linkBarcode()} mt="lg" fullWidth>
<Trans>Link</Trans>
</Button>
Expand Down

0 comments on commit bea0b1c

Please sign in to comment.