From 4e9a53574f842c68ed3eae2288d922691623fb48 Mon Sep 17 00:00:00 2001 From: hexxa Date: Sun, 9 Jan 2022 18:06:10 +0800 Subject: [PATCH] fix(fe/qr-code): qr code pos is not correct --- src/client/web/src/components/visual/qrcode.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/web/src/components/visual/qrcode.tsx b/src/client/web/src/components/visual/qrcode.tsx index 0768bee..2fd079b 100644 --- a/src/client/web/src/components/visual/qrcode.tsx +++ b/src/client/web/src/components/visual/qrcode.tsx @@ -36,8 +36,8 @@ export class QRCodeIcon extends React.Component { render() { const widthInRem = `${Math.floor(this.props.size / 10)}rem`; const posStyle = this.props.pos - ? { right: `-${widthInRem}rem` } - : { left: `-${widthInRem}rem` }; + ? { left: `0` } + : { left: `-${widthInRem}` }; const qrcode = this.state.show ? (