Browse Source

fix overlapping click-targets of alert state checkboxes (#10136)

using the same margin as checkboxes on top of /graph

Signed-off-by: Victor Häggqvist <victor@snilius.com>
pull/10140/head
Victor Häggqvist 3 years ago committed by GitHub
parent
commit
931acc3ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/ui/react-app/src/pages/alerts/AlertContents.tsx
  2. 6
      web/ui/react-app/src/pages/alerts/__snapshots__/AlertContents.test.tsx.snap

2
web/ui/react-app/src/pages/alerts/AlertContents.tsx

@ -63,7 +63,7 @@ const AlertsContent: FC<AlertsProps> = ({ groups = [], statsCount }) => {
return ( return (
<Checkbox <Checkbox
key={state} key={state}
wrapperStyles={{ marginRight: 10 }} wrapperStyles={{ marginRight: 20 }}
checked={filter[state]} checked={filter[state]}
id={`${state}-toggler`} id={`${state}-toggler`}
onChange={toggleFilter(state)} onChange={toggleFilter(state)}

6
web/ui/react-app/src/pages/alerts/__snapshots__/AlertContents.test.tsx.snap

@ -12,7 +12,7 @@ exports[`AlertsContent matches a snapshot 1`] = `
onChange={[Function]} onChange={[Function]}
wrapperStyles={ wrapperStyles={
Object { Object {
"marginRight": 10, "marginRight": 20,
} }
} }
> >
@ -35,7 +35,7 @@ exports[`AlertsContent matches a snapshot 1`] = `
onChange={[Function]} onChange={[Function]}
wrapperStyles={ wrapperStyles={
Object { Object {
"marginRight": 10, "marginRight": 20,
} }
} }
> >
@ -58,7 +58,7 @@ exports[`AlertsContent matches a snapshot 1`] = `
onChange={[Function]} onChange={[Function]}
wrapperStyles={ wrapperStyles={
Object { Object {
"marginRight": 10, "marginRight": 20,
} }
} }
> >

Loading…
Cancel
Save