From ebea11d64984813b86694bc00340641119996645 Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Wed, 8 May 2024 12:34:03 +0100 Subject: [PATCH] used antd text code component --- agenta-web/src/components/Playground/ViewNavigation.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/agenta-web/src/components/Playground/ViewNavigation.tsx b/agenta-web/src/components/Playground/ViewNavigation.tsx index fb18d19c3b..902dbdbecc 100644 --- a/agenta-web/src/components/Playground/ViewNavigation.tsx +++ b/agenta-web/src/components/Playground/ViewNavigation.tsx @@ -1,5 +1,5 @@ import React, {useEffect, useRef} from "react" -import {Col, Row, Divider, Button, Tooltip, Spin, notification} from "antd" +import {Col, Row, Divider, Button, Tooltip, Spin, notification, Typography} from "antd" import TestView from "./Views/TestView" import ParametersView from "./Views/ParametersView" import {useVariant} from "@/lib/hooks/useVariant" @@ -19,6 +19,8 @@ import {useAppsData} from "@/contexts/app.context" import {isDemo} from "@/lib/helpers/utils" import ResultComponent from "../ResultComponent/ResultComponent" +const {Text} = Typography + interface Props { variant: Variant handlePersistVariant: (variantName: string) => void @@ -39,7 +41,6 @@ const useStyles = createUseStyles({ }, errorLogs: { whiteSpace: "pre-wrap", - wordBreak: "break-all", }, }) @@ -187,7 +188,9 @@ const ViewNavigation: React.FC = ({