diff --git a/frontend/src/components/StateIcon.tsx b/frontend/src/components/StateIcon.tsx index 31e0b5243..27d6ab4df 100644 --- a/frontend/src/components/StateIcon.tsx +++ b/frontend/src/components/StateIcon.tsx @@ -1,12 +1,21 @@ import { FunctionComponent } from "react"; -import { Group, List, Popover, Stack, Text } from "@mantine/core"; -import { useHover } from "@mantine/hooks"; import { - faCheck, + Alert, + em, + Flex, + Group, + List, + Popover, + Stack, + Text, +} from "@mantine/core"; +import { useHover, useMediaQuery } from "@mantine/hooks"; +import { faCheckCircle, faExclamationCircle, faListCheck, - faTimes, + faMinus, + faPlus, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { BuildKey } from "@/utilities"; @@ -26,6 +35,8 @@ const StateIcon: FunctionComponent = ({ const { hovered, ref } = useHover(); + const isMobile = useMediaQuery(`(max-width: ${em(750)})`); + const PopoverTarget: FunctionComponent = () => { if (isHistory) { return ; @@ -48,11 +59,23 @@ const StateIcon: FunctionComponent = ({ + + Scoring Criteria + + {isMobile ? null : ( + + Not matching attributes will not prevent the subtitle to be + downloaded and are strictly used for scoring the subtitle. + + )} - - - + + + + + Matching + {matches.map((v, idx) => ( {v} @@ -60,9 +83,12 @@ const StateIcon: FunctionComponent = ({ - - - + + + + + Not Matching + {dont.map((v, idx) => ( {v}