diff --git a/website/src/components/FlaggableElement.tsx b/website/src/components/FlaggableElement.tsx index 05b0b923..c9c88eb6 100644 --- a/website/src/components/FlaggableElement.tsx +++ b/website/src/components/FlaggableElement.tsx @@ -15,7 +15,6 @@ import { SliderFilledTrack, SliderThumb, SliderTrack, - Spacer, Tooltip, useBoolean, useColorMode, @@ -23,6 +22,7 @@ import { useId, } from "@chakra-ui/react"; import { QuestionMarkCircleIcon } from "@heroicons/react/20/solid"; +import clsx from "clsx"; import { useEffect, useReducer } from "react"; import { FiAlertCircle } from "react-icons/fi"; import { get, post } from "src/lib/api"; @@ -159,7 +159,7 @@ export const FlaggableElement = (props: FlaggableElementProps) => { - +
@@ -207,9 +207,9 @@ export function FlagCheckbox(props: FlagCheckboxProps): JSX.Element { let AdditionalExplanation = null; if (props.label.help_text) { AdditionalExplanation = ( - + @@ -221,23 +221,30 @@ export function FlagCheckbox(props: FlagCheckboxProps): JSX.Element { const labelTextClass = colorMode === "light" - ? `text-${colors.light.text} hover:text-blue-700 float-left` - : `text-${colors.dark.text} hover:text-blue-400 float-left`; + ? `text-${colors.light.text} hover:text-blue-700` + : `text-${colors.dark.text} hover:text-blue-400`; return ( - - { - props.checkboxHandler(e.target.checked, props.idx); - }} - /> - - + +
+ { + props.checkboxHandler(e.target.checked, props.idx); + }} + /> + +
{ if (!props.checked) {