fix(fe/qr-code): qr code pos is not correct
This commit is contained in:
parent
56bc628d5b
commit
4e9a53574f
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ export class QRCodeIcon extends React.Component<Props, State, {}> {
|
|||
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 ? (
|
||||
<div className="qrcode-child" style={{ ...posStyle }}>
|
||||
<div className="qrcode">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue