fix(chat): restrict to authenticated users only, fix overlay transparency
Some checks failed
ci/woodpecker/push/ci Pipeline failed
Some checks failed
ci/woodpecker/push/ci Pipeline failed
This commit is contained in:
@@ -55,8 +55,8 @@ export function ChatOverlay(): React.JSX.Element {
|
||||
onClick={open}
|
||||
className="fixed bottom-6 right-6 z-50 flex h-14 w-14 items-center justify-center rounded-full shadow-lg transition-all hover:scale-110 focus:outline-none focus:ring-2 focus:ring-offset-2 lg:bottom-8 lg:right-8"
|
||||
style={{
|
||||
backgroundColor: "rgb(var(--accent-primary))",
|
||||
color: "rgb(var(--text-on-accent))",
|
||||
backgroundColor: "var(--accent-primary, #10b981)",
|
||||
color: "var(--text-on-accent, #ffffff)",
|
||||
}}
|
||||
aria-label="Open chat"
|
||||
title="Open Jarvis chat (Cmd+Shift+J)"
|
||||
@@ -78,18 +78,18 @@ export function ChatOverlay(): React.JSX.Element {
|
||||
if (isMinimized) {
|
||||
return (
|
||||
<div
|
||||
className="fixed bottom-0 right-0 z-40 w-full sm:w-96"
|
||||
className="fixed bottom-0 right-0 z-40 w-full shadow-2xl sm:w-96"
|
||||
style={{
|
||||
backgroundColor: "rgb(var(--surface-0))",
|
||||
borderColor: "rgb(var(--border-default))",
|
||||
backgroundColor: "var(--surface-0, #ffffff)",
|
||||
borderColor: "var(--border-default, #e5e7eb)",
|
||||
}}
|
||||
>
|
||||
<button
|
||||
onClick={expand}
|
||||
className="flex w-full items-center justify-between border-t px-4 py-3 text-left transition-colors hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-inset"
|
||||
style={{
|
||||
borderColor: "rgb(var(--border-default))",
|
||||
backgroundColor: "rgb(var(--surface-0))",
|
||||
borderColor: "var(--border-default, #e5e7eb)",
|
||||
backgroundColor: "var(--surface-0, #ffffff)",
|
||||
}}
|
||||
aria-label="Expand chat"
|
||||
>
|
||||
@@ -135,10 +135,10 @@ export function ChatOverlay(): React.JSX.Element {
|
||||
|
||||
{/* Chat Panel */}
|
||||
<div
|
||||
className="fixed inset-y-0 right-0 z-40 flex w-full flex-col border-l sm:w-96 lg:inset-y-16"
|
||||
className="fixed inset-y-0 right-0 z-40 flex w-full flex-col border-l shadow-2xl sm:w-96 lg:inset-y-16"
|
||||
style={{
|
||||
backgroundColor: "rgb(var(--surface-0))",
|
||||
borderColor: "rgb(var(--border-default))",
|
||||
backgroundColor: "var(--surface-0, #ffffff)",
|
||||
borderColor: "var(--border-default, #e5e7eb)",
|
||||
}}
|
||||
>
|
||||
{/* Header */}
|
||||
|
||||
Reference in New Issue
Block a user