Skip to content

Commit 472fb6c

Browse files
authored
update css slightly (#69423)
updates the monitor type select to look a bit better Updated ![Apr-22-2024 11-01-15](https://github.com/getsentry/sentry/assets/6186377/d93546ff-eed0-4043-9ef1-9fb40e672f12)
1 parent 39c47fa commit 472fb6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

static/app/views/alerts/rules/metric/ruleConditionsForm.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ const MonitorSelect = styled('div')`
771771
width: 100%;
772772
display: grid;
773773
grid-template-columns: 1fr 1fr;
774+
height: 6rem;
774775
`;
775776

776777
type MonitorCardProps = {
@@ -787,18 +788,22 @@ const MonitorCard = styled('div')<MonitorCardProps>`
787788
flex-grow: 1;
788789
flex-direction: column;
789790
cursor: pointer;
791+
justify-content: center;
790792
791793
&:focus,
792794
&:hover {
793795
outline: 1px solid ${p => p.theme.purple200};
794796
background-color: ${p => p.theme.backgroundSecondary};
797+
margin: 0;
795798
}
796799
797800
border-top-left-radius: ${p => (p.position === 'left' ? p.theme.borderRadius : 0)};
798801
border-bottom-left-radius: ${p => (p.position === 'left' ? p.theme.borderRadius : 0)};
799802
border-top-right-radius: ${p => (p.position !== 'left' ? p.theme.borderRadius : 0)};
800803
border-bottom-right-radius: ${p => (p.position !== 'left' ? p.theme.borderRadius : 0)};
801-
outline: ${p => (p.isSelected ? `1px solid ${p.theme.purple400}` : 'none')};
804+
margin: ${p =>
805+
p.isSelected ? (p.position === 'left' ? '1px 2px 1px 0' : '1px 0 1px 2px') : 0};
806+
outline: ${p => (p.isSelected ? `2px solid ${p.theme.purple400}` : 'none')};
802807
`;
803808

804809
const ActivatedAlertFields = styled('div')`

0 commit comments

Comments
 (0)