Skip to content

Commit de75e49

Browse files
committed
fix(photoresistor-sensor): minimum font size makes text very big on firefox
#78
1 parent 768a2e6 commit de75e49

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/photoresistor-sensor-element.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,16 @@ export class PhotoresistorSensorElement extends LitElement {
143143
/>
144144
145145
<!-- Text -->
146-
<g fill="#fffefe" font-size="4.4px" font-family="sans-serif">
147-
<text x="117.46" y="13.90">PWR</text>
148-
<text x="117.46" y="18.41">LED</text>
149-
<text x="133.16" y="17.37">VCC</text>
150-
<text x="133.16" y="26.87">GND</text>
151-
<text x="135.42" y="36.55">DO</text>
152-
<text x="135.42" y="46.359">AO</text>
153-
<text x="117.44" y="45.53">DO</text>
154-
<text x="117.44" y="50.036">LED</text>
155-
</g>
146+
<text fill="#fffefe" font-size="4.4px" font-family="sans-serif">
147+
<tspan x="117.46" y="13.90">PWR</tspan>
148+
<tspan x="117.46" y="18.41">LED</tspan>
149+
<tspan x="133.16" y="17.37">VCC</tspan>
150+
<tspan x="133.16" y="26.87">GND</tspan>
151+
<tspan x="135.42" y="36.55">DO</tspan>
152+
<tspan x="135.42" y="46.359">AO</tspan>
153+
<tspan x="117.44" y="45.53">DO</tspan>
154+
<tspan x="117.44" y="50.036">LED</tspan>
155+
</text>
156156
157157
<!-- Board pins -->
158158
<path

0 commit comments

Comments
 (0)