Skip to content

Commit 0bbbd34

Browse files
committed
#696 Add black gap in GZMTR Line 1 panel style
1 parent 0d7fad5 commit 0bbbd34

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

public/styles/share_gzmtr.css

+12-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
font-family: Arial, SimHei, STHeitiSC-Medium, 'PingFang SC', sans-serif;
44
font-weight: normal;
55
}
6+
67
.rmg-name__en {
78
dominant-baseline: middle;
89
font-family: Arial, sans-serif;
@@ -11,8 +12,14 @@
1112
rect#strip_gz {
1213
fill: var(--rmg-theme-colour);
1314
width: var(--rmg-svg-width);
14-
transform: translateY(calc(var(--rmg-svg-height) - var(--height, 60px)));
15-
height: var(--height, 60px);
15+
transform: translateY(calc(var(--rmg-svg-height) - var(--strip-height)));
16+
height: var(--strip-height);
17+
}
18+
19+
.gz1-gap {
20+
width: var(--rmg-svg-width);
21+
transform: translateY(calc(var(--rmg-svg-height) - var(--strip-height) - 2px));
22+
height: 2px;
1623
}
1724

1825
.rmg-name__gzmtr--white-fg {
@@ -33,12 +40,15 @@ g#big_sec {
3340
.Name.Pass {
3441
fill: #aaa;
3542
}
43+
3644
.Name.Current {
3745
fill: #fff;
3846
}
47+
3948
.Name.CurrentGZ {
4049
fill: #f00;
4150
}
51+
4252
.Name.Future {
4353
fill: #000;
4454
}

src/svgs/gzmtr/strip-gzmtr.tsx

+6-16
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,12 @@ const StripGZMTR = (props: Props) => {
6060
const stripDy = -15;
6161

6262
return (
63-
<g transform={`translate(0,${props.variant === 'gz4' ? stripDy : 0})`}>
64-
<rect
65-
id="strip_gz"
66-
style={{
67-
['--height' as any]: `${stripHeight}px`,
68-
}}
69-
/>
70-
{props.variant === PanelTypeGZMTR.gz1 && (
71-
<rect
72-
height={2}
73-
style={{
74-
width: 'var(--rmg-svg-width)',
75-
transform: `translateY(calc(var(--rmg-svg-height) - ${stripHeight + 2}px))`,
76-
}}
77-
/>
78-
)}
63+
<g
64+
transform={`translate(0,${props.variant === 'gz4' ? stripDy : 0})`}
65+
style={{ ['--strip-height' as any]: `${stripHeight}px` }}
66+
>
67+
<rect id="strip_gz" />
68+
{props.variant === PanelTypeGZMTR.gz1 && <rect className="gz1-gap" />}
7969
<g
8070
style={{
8171
transform: 'translate(calc(var(--rmg-svg-width) / 2),var(--rmg-svg-height))',

0 commit comments

Comments
 (0)