Skip to content

Commit 9b62f8a

Browse files
committed
trace selector alignment on edge and firefox
1 parent d843b11 commit 9b62f8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/styles/components/widgets/_trace-type-selector.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
$item-size: 90px;
22
$image-size: 60px;
3+
$label-height: 34px;
4+
$row-height: $image-size + $label-height + $default-half-spacing-unit +
5+
$default-quarter-spacing-unit;
36

47
.trace-grid {
58
display: grid;
69
grid-template-columns: repeat(4, 1fr);
7-
@media (max-width: 1000px) {
10+
@media (max-width: 860px) {
811
grid-template-columns: repeat(2, 1fr);
912
}
1013
&__column {
@@ -141,6 +144,7 @@ $image-size: 60px;
141144
display: grid;
142145
grid-gap: 0;
143146
grid-template-columns: repeat(2, $item-size);
147+
grid-template-rows: repeat(2, $row-height);
144148
flex-grow: 1;
145149
width: 100%;
146150
padding: 0 var(--spacing-half-unit) var(--spacing-half-unit);
@@ -267,7 +271,7 @@ $image-size: 60px;
267271
&__label {
268272
font-weight: var(--font-weight-semibold);
269273
width: $item-size * 0.8;
270-
height: 34px;
274+
height: $label-height;
271275
margin-top: var(--spacing-quarter-unit);
272276
color: var(--color-text-base);
273277
text-transform: capitalize;

0 commit comments

Comments
 (0)