Skip to content

Commit a2458bb

Browse files
committed
nits
1 parent b75a53a commit a2458bb

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

static/app/views/alerts/list/rules/activatedRuleRow.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ function ActivatedRuleListRow({
258258
<ErrorBoundary>
259259
<AlertNameWrapper>
260260
<AlertNameAndStatus>
261-
<AlertName>
262-
<div>{rule.name}</div>
263-
</AlertName>
261+
<AlertName>{rule.name}</AlertName>
264262
<AlertActivationDate>{renderLatestActivation()}</AlertActivationDate>
265263
</AlertNameAndStatus>
266264
</AlertNameWrapper>
@@ -295,12 +293,7 @@ function ActivatedRuleListRow({
295293
<ActorAvatar actor={teamActor} size={24} />
296294
) : (
297295
<AssigneeWrapper>
298-
{!projectsLoaded && (
299-
<LoadingIndicator
300-
mini
301-
style={{height: '24px', margin: 0, marginRight: 11}}
302-
/>
303-
)}
296+
{!projectsLoaded && <StyledLoadingIndicator mini />}
304297
{projectsLoaded && (
305298
<DropdownAutoComplete
306299
data-test-id="alert-row-assignee"
@@ -351,6 +344,7 @@ function ActivatedRuleListRow({
351344
);
352345
}
353346

347+
// TODO: see static/app/components/profiling/flex.tsx and utilize the FlexContainer styled component
354348
const FlexCenter = styled('div')`
355349
display: flex;
356350
align-items: center;
@@ -434,23 +428,29 @@ const IconContainer = styled('div')`
434428
display: flex;
435429
align-items: center;
436430
justify-content: center;
437-
width: 24px;
438-
height: 24px;
431+
width: ${p => p.theme.iconSizes.lg};
432+
height: ${p => p.theme.iconSizes.lg};
439433
flex-shrink: 0;
440434
`;
441435

442436
const MenuItemWrapper = styled('div')`
443437
display: flex;
444438
align-items: center;
445-
font-size: 13px;
439+
font-size: ${p => p.theme.fontSizeSmall};
446440
`;
447441

448442
const Label = styled(TextOverflow)`
449-
margin-left: 6px;
443+
margin-left: ${space(0.75)};
450444
`;
451445

452446
const MarginLeft = styled('div')`
453447
margin-left: ${space(1)};
454448
`;
455449

450+
const StyledLoadingIndicator = styled(LoadingIndicator)`
451+
height: 24px;
452+
margin: 0;
453+
margin-right: ${space(1.5)};
454+
`;
455+
456456
export default ActivatedRuleListRow;

static/app/views/alerts/list/rules/row.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,7 @@ function RuleListRow({
367367
<ActorAvatar actor={teamActor} size={24} />
368368
) : (
369369
<AssigneeWrapper>
370-
{!projectsLoaded && (
371-
<LoadingIndicator
372-
mini
373-
style={{height: '24px', margin: 0, marginRight: 11}}
374-
/>
375-
)}
370+
{!projectsLoaded && <StyledLoadingIndicator mini />}
376371
{projectsLoaded && (
377372
<DropdownAutoComplete
378373
data-test-id="alert-row-assignee"
@@ -423,6 +418,7 @@ function RuleListRow({
423418
);
424419
}
425420

421+
// TODO: see static/app/components/profiling/flex.tsx and utilize the FlexContainer styled component
426422
const FlexCenter = styled('div')`
427423
display: flex;
428424
align-items: center;
@@ -506,23 +502,29 @@ const IconContainer = styled('div')`
506502
display: flex;
507503
align-items: center;
508504
justify-content: center;
509-
width: 24px;
510-
height: 24px;
505+
width: ${p => p.theme.iconSizes.lg};
506+
height: ${p => p.theme.iconSizes.lg};
511507
flex-shrink: 0;
512508
`;
513509

514510
const MenuItemWrapper = styled('div')`
515511
display: flex;
516512
align-items: center;
517-
font-size: 13px;
513+
font-size: ${p => p.theme.fontSizeSmall};
518514
`;
519515

520516
const Label = styled(TextOverflow)`
521-
margin-left: 6px;
517+
margin-left: ${space(0.75)};
522518
`;
523519

524520
const MarginLeft = styled('div')`
525521
margin-left: ${space(1)};
526522
`;
527523

524+
const StyledLoadingIndicator = styled(LoadingIndicator)`
525+
height: 24px;
526+
margin: 0;
527+
margin-right: ${space(1.5)};
528+
`;
529+
528530
export default RuleListRow;

0 commit comments

Comments
 (0)