From 4831129448c55f3242033ca5b5cacb3d60862a63 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Wed, 19 Jun 2024 14:09:37 -0700 Subject: [PATCH] fix: only check for the existence of data-floating (#248) --- apps/www/components/chatgpt/ChatGPT.tsx | 2 +- .../components/ui/assistant-ui/thread.tsx | 4 ++-- packages/cli/registry/assistant-ui/experimental/thread.tsx | 4 ++-- packages/cli/registry/assistant-ui/full/thread.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/www/components/chatgpt/ChatGPT.tsx b/apps/www/components/chatgpt/ChatGPT.tsx index 836663b00..b64986e60 100644 --- a/apps/www/components/chatgpt/ChatGPT.tsx +++ b/apps/www/components/chatgpt/ChatGPT.tsx @@ -132,7 +132,7 @@ const AssistantMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border-2 data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border-2 data-[floating]:p-1" > diff --git a/examples/with-react-hook-form/components/ui/assistant-ui/thread.tsx b/examples/with-react-hook-form/components/ui/assistant-ui/thread.tsx index 50f1cc997..23719c9f2 100644 --- a/examples/with-react-hook-form/components/ui/assistant-ui/thread.tsx +++ b/examples/with-react-hook-form/components/ui/assistant-ui/thread.tsx @@ -124,7 +124,7 @@ const UserMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border data-[floating]:p-1" > @@ -187,7 +187,7 @@ const AssistantMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border data-[floating]:p-1" > diff --git a/packages/cli/registry/assistant-ui/experimental/thread.tsx b/packages/cli/registry/assistant-ui/experimental/thread.tsx index 15116af8b..88502ee5c 100644 --- a/packages/cli/registry/assistant-ui/experimental/thread.tsx +++ b/packages/cli/registry/assistant-ui/experimental/thread.tsx @@ -125,7 +125,7 @@ const UserMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border data-[floating]:p-1" > @@ -188,7 +188,7 @@ const AssistantMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border data-[floating]:p-1" > diff --git a/packages/cli/registry/assistant-ui/full/thread.tsx b/packages/cli/registry/assistant-ui/full/thread.tsx index c9c57df34..5d688f536 100644 --- a/packages/cli/registry/assistant-ui/full/thread.tsx +++ b/packages/cli/registry/assistant-ui/full/thread.tsx @@ -124,7 +124,7 @@ const UserMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border data-[floating]:p-1" > @@ -187,7 +187,7 @@ const AssistantMessage: FC = () => { hideWhenRunning autohide="not-last" autohideFloat="single-branch" - className="flex items-center gap-1 rounded-lg data-[floating=true]:absolute data-[floating=true]:border data-[floating=true]:p-1" + className="flex items-center gap-1 rounded-lg data-[floating]:absolute data-[floating]:border data-[floating]:p-1" >