2
0

💄 Fix misc UI issues

Closes #430
This commit is contained in:
Baptiste Arnaud
2023-03-28 16:02:26 +02:00
parent 14d7ebd58c
commit f13d7a1a5a
4 changed files with 10 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ const nextConfig = {
], ],
i18n: { i18n: {
defaultLocale: 'en', defaultLocale: 'en',
locales: ['en', 'fr', 'pr'], locales: ['en', 'fr', 'pt'],
}, },
experimental: { experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'), outputFileTracingRoot: path.join(__dirname, '../../'),

View File

@@ -12,5 +12,7 @@ export const UrlNodeContent = ({ placeholder, variableId }: Props) =>
variableId ? ( variableId ? (
<WithVariableContent variableId={variableId} /> <WithVariableContent variableId={variableId} />
) : ( ) : (
<Text color={'gray.500'}>{placeholder}</Text> <Text color={'gray.500'} w="90%">
{placeholder}
</Text>
) )

View File

@@ -13,6 +13,7 @@ import {
Box, Box,
Text, Text,
Image, Image,
useColorModeValue,
} from '@chakra-ui/react' } from '@chakra-ui/react'
import { BackgroundType, ThemeTemplate } from '@typebot.io/schemas' import { BackgroundType, ThemeTemplate } from '@typebot.io/schemas'
import { useState } from 'react' import { useState } from 'react'
@@ -33,6 +34,7 @@ export const ThemeTemplateCard = ({
onClick: () => void onClick: () => void
onDeleteSuccess?: () => void onDeleteSuccess?: () => void
}) => { }) => {
const borderWidth = useColorModeValue(undefined, '1px')
const [isDeleting, setIsDeleting] = useState(false) const [isDeleting, setIsDeleting] = useState(false)
const { const {
@@ -62,6 +64,7 @@ export const ThemeTemplateCard = ({
return ( return (
<Stack <Stack
borderWidth={borderWidth}
cursor="pointer" cursor="pointer"
onClick={onClick} onClick={onClick}
spacing={0} spacing={0}

View File

@@ -2722,8 +2722,7 @@
"operationId": "query.theme.listThemeTemplates", "operationId": "query.theme.listThemeTemplates",
"summary": "List theme templates", "summary": "List theme templates",
"tags": [ "tags": [
"Workspace", "Theme template"
"Theme"
], ],
"security": [ "security": [
{ {
@@ -2952,8 +2951,7 @@
"operationId": "mutation.theme.saveThemeTemplate", "operationId": "mutation.theme.saveThemeTemplate",
"summary": "Save theme template", "summary": "Save theme template",
"tags": [ "tags": [
"Workspace", "Theme template"
"Theme"
], ],
"security": [ "security": [
{ {
@@ -3379,8 +3377,7 @@
"operationId": "mutation.theme.deleteThemeTemplate", "operationId": "mutation.theme.deleteThemeTemplate",
"summary": "Delete a theme template", "summary": "Delete a theme template",
"tags": [ "tags": [
"Workspace", "Theme template"
"Theme"
], ],
"security": [ "security": [
{ {