2
0

🩹 Fix dark mode bg remaining issues

This commit is contained in:
Baptiste Arnaud
2022-12-22 09:59:50 +01:00
parent 9149af7e6b
commit d1b5b6ebe6
8 changed files with 44 additions and 30 deletions

View File

@ -13,6 +13,7 @@ import {
PopoverArrow,
PopoverBody,
useEventListener,
useColorModeValue,
} from '@chakra-ui/react'
import { useTypebot } from '@/features/editor'
import {
@ -36,6 +37,7 @@ type Props = {
}
export const ConditionItemNode = ({ item, isMouseOver, indices }: Props) => {
const comparisonValueBg = useColorModeValue('gray.200', 'gray.700')
const { typebot, createItem, updateItem } = useTypebot()
const { openedItemId, setOpenedItemId } = useGraph()
const ref = useRef<HTMLDivElement | null>(null)
@ -106,7 +108,7 @@ export const ConditionItemNode = ({ item, isMouseOver, indices }: Props) => {
</Text>
)}
{comparison?.value && (
<Tag bgColor={'gray.200'}>
<Tag bgColor={comparisonValueBg}>
<Text noOfLines={1}>{comparison.value}</Text>
</Tag>
)}