Skip to content

Commit 61813fa

Browse files
committed
fixed some firefox bugs
1 parent 4ae32d5 commit 61813fa

6 files changed

Lines changed: 45 additions & 7 deletions

File tree

Lines changed: 24 additions & 1 deletion
Loading

css/components/_palettemodal.sass

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,24 @@
196196
font-display: block
197197
font-weight: 400
198198

199-
b
199+
@font-face
200+
font-family: "montserrat"
201+
src: local("Montserrat"), url("./../assets/fonts/Montserrat-VariableFont_wght.ttf") format('truetype'), url("./../assets/fonts/Montserrat-VariableFont_wght.ttf")
202+
font-style: normal
203+
font-display: block
204+
205+
b.red-hat-loader
200206
font-family: 'red hat mono regular'
201207
visibility: hidden
202208
height: 0
203209
flex-shrink: 1
204-
display: none
210+
width: 0
211+
position: absolute
205212

213+
b.montserrat-loader
214+
font-family: 'montserrat'
215+
visibility: hidden
216+
height: 0
217+
flex-shrink: 1
218+
width: 0
219+
position: absolute

css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/main.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/components/paletteModal.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ class PaletteModal extends Component {
157157
<div class="material-display">
158158
<div class="material material-png active">
159159
<div class="material-actual">
160-
<b>e</b>
160+
<b class="red-hat-loader">e</b>
161+
<b class="montserrat-loader">e</b>
161162
<canvas class="image-canvas"></canvas>
162163
</div>
163164
<div class="material-url download">

js/utils/color/palettePainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const drawOnyxPalette = async (palette, canvas, crop = false) => {
6161
await loadImage(icon)
6262
ctx.drawImage(icon, PAD_LEFT, GAP_HOR_CENTER_TOP, ICON_SIZE, ICON_SIZE)
6363

64-
ctx.font = `bold 24px "montserrat"`
64+
ctx.font = `bold 24px "montserrat", monospace`
6565
ctx.textBaseline = 'middle'
6666
ctx.textAlign = 'right'
6767
ctx.fillStyle = textColor

0 commit comments

Comments
 (0)