From bf27b5c5b0a45ebc0eb0113783bcb6d8fa9ff45d Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Sat, 7 Dec 2024 20:26:19 +0100 Subject: [PATCH] enhancement(frontend): updated is_demo banner text --- agenta-web/src/components/Layout/Layout.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/agenta-web/src/components/Layout/Layout.tsx b/agenta-web/src/components/Layout/Layout.tsx index eee7d50622..b1cbcc8209 100644 --- a/agenta-web/src/components/Layout/Layout.tsx +++ b/agenta-web/src/components/Layout/Layout.tsx @@ -1,5 +1,5 @@ import React, {useEffect, useMemo, useState} from "react" -import {Breadcrumb, Button, ConfigProvider, Layout, Modal, Space, Typography, theme} from "antd" +import {Breadcrumb, ConfigProvider, Layout, Modal, Space, Typography, theme} from "antd" import Sidebar from "../Sidebar/Sidebar" import {GithubFilled, LinkedinFilled, TwitterOutlined} from "@ant-design/icons" import Link from "next/link" @@ -86,15 +86,13 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({ display: "flex", alignItems: "center", justifyContent: "center", - gap: 8, + gap: 6, color: "#fff", fontSize: 12, lineHeight: "20px", fontWeight: 500, - "& .ant-btn": { + "& span": { fontWeight: 600, - color: "#fff", - padding: 0, }, }, })) @@ -220,10 +218,14 @@ const App: React.FC = ({children}) => {
{project?.is_demo && (
- You are viewing demo workspace. To go back to your workspace,{" "} - + You are in a view-only demo workspace. To go back + to your workspace{" "} + + click here +
)}