diff --git a/packages/frontend/core/src/components/pure/ai-island/index.tsx b/packages/frontend/core/src/components/pure/ai-island/index.tsx index 485a543e69..daf449d0df 100644 --- a/packages/frontend/core/src/components/pure/ai-island/index.tsx +++ b/packages/frontend/core/src/components/pure/ai-island/index.tsx @@ -8,30 +8,9 @@ import { aiIslandAnimationBg, aiIslandBtn, aiIslandWrapper, - borderAngle1, - borderAngle2, - borderAngle3, + gradient, } from './styles.css'; -if ( - typeof window !== 'undefined' && - window.CSS && - window.CSS.registerProperty -) { - const getName = (nameWithVar: string) => nameWithVar.slice(4, -1); - const registerAngle = (varName: string, initialValue: number) => { - window.CSS.registerProperty({ - name: getName(varName), - syntax: '', - inherits: false, - initialValue: `${initialValue}deg`, - }); - }; - registerAngle(borderAngle1, 0); - registerAngle(borderAngle2, 90); - registerAngle(borderAngle3, 180); -} - export const AIIsland = () => { // to make sure ai island is hidden first and animate in const [hide, setHide] = useState(true); @@ -52,7 +31,13 @@ export const AIIsland = () => { data-hide={hide} data-animation={!aiChatHasEverOpened} > -
+ {aiChatHasEverOpened ? null : ( +
+
+
+
+
+ )}