Skip to content

Commit dab9358

Browse files
authored
fix: set max-width on Icon (commaai#555)
1 parent 91625fa commit dab9358

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,25 +181,23 @@
181181
.material-symbols-outlined {
182182
transition: font-variation-settings 0.2s;
183183
font-variation-settings: "FILL" var(--font-filled, 0), "OPSZ" var(--font-opsz, 24);
184+
font-size: calc(var(--font-opsz, 24) * 1px);
185+
max-width: calc(var(--font-opsz, 24) * 1px);
184186

185187
&.size-20 {
186188
--font-opsz: 20;
187-
font-size: 20px;
188189
}
189190

190191
&.size-24 {
191192
--font-opsz: 24;
192-
font-size: 24px;
193193
}
194194

195195
&.size-40 {
196196
--font-opsz: 40;
197-
font-size: 40px;
198197
}
199198

200199
&.size-48 {
201200
--font-opsz: 48;
202-
font-size: 48px;
203201
}
204202

205203
&.icon-outline {

0 commit comments

Comments
 (0)