From 900c6746d693d000e57edec16ede355945761470 Mon Sep 17 00:00:00 2001 From: ciaochaos <1272777550@qq.com> Date: Sun, 3 May 2020 12:42:03 +0800 Subject: [PATCH] =?UTF-8?q?footer=20=E5=AD=97=E4=BD=93=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 19 ++++++++++++++----- src/components/QrItem.js | 2 +- src/components/Qrcode.css | 13 ++++++++++++- src/components/Qrcode.js | 10 +++++----- 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9143a77..a665a38 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -12,7 +12,8 @@ - + + @@ -440,17 +448,18 @@ - - + - + diff --git a/src/components/QrItem.js b/src/components/QrItem.js index 3f33bde..c93f45b 100644 --- a/src/components/QrItem.js +++ b/src/components/QrItem.js @@ -9,7 +9,7 @@ function calViewBox(props) { } function calClassName(props) { - if (props.selected == true) return 'Qr-item Qr-item-selected'; + if (props.selected === true) return 'Qr-item Qr-item-selected'; return 'Qr-item'; } diff --git a/src/components/Qrcode.css b/src/components/Qrcode.css index 4811194..03d7732 100644 --- a/src/components/Qrcode.css +++ b/src/components/Qrcode.css @@ -318,10 +318,21 @@ table { } .Qr-footer { - font-size: 14px; + color: #1D1D1F; + font-size: 12px; margin-bottom: -4px; } +@media (min-width: 500px) { + .Qr-footer { + font-size: 14px; + } +} + +.Gray { + color: #86868B; +} + .Qr-footer div { margin-bottom: 4px; } diff --git a/src/components/Qrcode.js b/src/components/Qrcode.js index 4a6897b..93aecc6 100644 --- a/src/components/Qrcode.js +++ b/src/components/Qrcode.js @@ -70,7 +70,7 @@ class Qrcode extends React.Component { value={this.state.text} onChange={this.handleChange} onBlur={this.handleCreate} - onKeyPress={(e) => {if(e.key == 'Enter') this.handleCreate(e)}} + onKeyPress={(e) => {if(e.key === 'Enter') this.handleCreate(e)}} />
@@ -87,7 +87,7 @@ class Qrcode extends React.Component { key={style.value} qrcode={this.state.qrcode} renderer={style.renderer} - selected={style.value == this.state.selected} + selected={style.value === this.state.selected} onSelected={this.handleSelected} /> }) @@ -146,9 +146,9 @@ class Qrcode extends React.Component {
-
作者ciaochaosCPunisher
-
Copyright © {currentYear} QRBTF. All rights reserved.
- +
作者ciaochaosCPunisher
+
Copyright © {currentYear} QRBTF. All rights reserved.
+