Skip to content

Commit ddefae2

Browse files
committed
fix(simput): Grid height style issue on Firefox
1 parent 278325d commit ddefae2

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/widgets/GridMapWidget.mcss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,21 @@
1515
.gridItem {
1616
align-self: stretch;
1717
border: solid 1px rgba(100, 100, 100, 0.5);
18-
padding-top: 100%;
18+
1919
position: relative;
2020
transition-timing-function: ease-in;
2121
transition: opacity 0.5s;
2222
}
2323

24+
.gridItem:before {
25+
content: "";
26+
height: 0;
27+
display: inline-block;
28+
padding-top: 100%;
29+
width: 1px;
30+
position: relative;
31+
}
32+
2433
.inactiveGridItem {
2534
composes: gridItem;
2635
opacity: 0.5;

0 commit comments

Comments
 (0)