Skip to content

Commit

Permalink
fix: only check for the existence of data-floating (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 19, 2024
1 parent 7c3f6aa commit 4831129
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/www/components/chatgpt/ChatGPT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<ActionBarPrimitive.Reload asChild>
<ActionButton tooltip="Reload">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<ActionBarPrimitive.Edit asChild>
<IconButton tooltip="Edit">
Expand Down Expand Up @@ -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"
>
<ActionBarPrimitive.Copy asChild>
<IconButton tooltip="Copy">
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/registry/assistant-ui/experimental/thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<ActionBarPrimitive.Edit asChild>
<IconButton tooltip="Edit">
Expand Down Expand Up @@ -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"
>
<ActionBarPrimitive.Copy asChild>
<IconButton tooltip="Copy">
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/registry/assistant-ui/full/thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<ActionBarPrimitive.Edit asChild>
<IconButton tooltip="Edit">
Expand Down Expand Up @@ -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"
>
<ActionBarPrimitive.Copy asChild>
<IconButton tooltip="Copy">
Expand Down

0 comments on commit 4831129

Please sign in to comment.