base 参数微调
This commit is contained in:
parent
bb2f7ab6a1
commit
8899865f17
|
@ -18,7 +18,7 @@ function listPoint(props) {
|
||||||
for (let col = 0; col < nCount; col++) {
|
for (let col = 0; col < nCount; col++) {
|
||||||
if (qrcode.isDark(row, col)) {
|
if (qrcode.isDark(row, col)) {
|
||||||
if (type == 0)
|
if (type == 0)
|
||||||
pointList.push(<rect width={size} height={size} key={id++} fill="black" x={row} y={col}/>)
|
pointList.push(<rect width={size} height={size} key={id++} fill="black" x={row + (1 - size)/2} y={col + (1 - size)/2}/>)
|
||||||
else if (type == 1)
|
else if (type == 1)
|
||||||
pointList.push(<circle r={size / 2} key={id++} fill="black" cx={row + 0.5} cy={col + 0.5}/>)
|
pointList.push(<circle r={size / 2} key={id++} fill="black" cx={row + 0.5} cy={col + 0.5}/>)
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,6 @@
|
||||||
.Qr-titled-nobg {
|
.Qr-titled-nobg {
|
||||||
padding-top: calc((10px + 2vmin) * 2);
|
padding-top: calc((10px + 2vmin) * 2);
|
||||||
padding-bottom: calc((10px + 2vmin) * 2);
|
padding-bottom: calc((10px + 2vmin) * 2);
|
||||||
-webkit-transition-timing-function: ease-in-out;
|
|
||||||
transition-timing-function: ease-in-out;
|
|
||||||
-webkit-transition-duration: 0.2s; /* Safari */
|
|
||||||
transition-duration: 0.2s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.Qr-title {
|
.Qr-title {
|
||||||
|
|
Loading…
Reference in New Issue