Skip to content

Commit 0746e3b

Browse files
fix(insights): makes web vital meter with issues button more responsive (#94932)
Updates Web Vital meter with issues button to be more responsive to fit smaller screen sizes
1 parent 8aa7ea8 commit 0746e3b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

static/app/views/insights/browser/webVitals/components/webVitalMetersWithIssues.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,14 @@ const Flex = styled('div')<{gap?: number}>`
266266
flex-wrap: wrap;
267267
`;
268268

269+
// Issues Button starts to overlap with meter text at 1500px
269270
const StyledIssuesButton = styled(LinkButton)`
270271
position: absolute;
271272
right: ${space(1)};
273+
274+
@media (max-width: 1500px) {
275+
bottom: ${space(1)};
276+
}
272277
`;
273278

274279
// This style explicitly hides InteractionStateLayer when the Issues button is hovered
@@ -279,7 +284,7 @@ const MeterBarContainer = styled('div')<{clickable?: boolean}>`
279284
position: relative;
280285
padding: 0;
281286
cursor: ${p => (p.clickable ? 'pointer' : 'default')};
282-
min-width: 140px;
287+
min-width: 180px;
283288
284289
:has(${StyledIssuesButton}:hover) > ${InteractionStateLayer} {
285290
display: none;
@@ -300,6 +305,7 @@ const MeterHeader = styled('div')`
300305
width: 100%;
301306
padding: 0 ${space(1)};
302307
align-items: center;
308+
white-space: nowrap;
303309
`;
304310

305311
const MeterValueText = styled('div')`
@@ -312,6 +318,11 @@ const MeterValueText = styled('div')`
312318
text-align: center;
313319
padding: 0 ${space(1)};
314320
gap: ${space(1)};
321+
height: 30px;
322+
323+
@media (max-width: 1500px) {
324+
font-size: ${p => p.theme.fontSize.lg};
325+
}
315326
`;
316327

317328
const NoValueContainer = styled('span')`

0 commit comments

Comments
 (0)