diff --git a/app/globals.css b/app/globals.css index 22f95cba..0f50db5a 100644 --- a/app/globals.css +++ b/app/globals.css @@ -124,7 +124,7 @@ } .mobile-icons-bar { - height: 60px; + height: 48px; width: 100%; background-color: hsl(var(--background)); border-top: 1px solid hsl(var(--border)); @@ -144,7 +144,7 @@ .mobile-icons-bar-content { display: flex; - gap: 20px; + gap: 12px; padding: 0 10px; min-width: max-content; /* justify-content: space-between; */ @@ -169,7 +169,7 @@ flex: 1; width: 100%; overflow-y: auto; - padding: 12px; + padding: 8px; padding-bottom: 60px; box-sizing: border-box; background-color: hsl(var(--card)); @@ -180,7 +180,7 @@ .mobile-chat-messages-area { flex: 1; /* Changed from height: 40vh to take available space */ overflow-y: auto; - padding: 12px; + padding: 8px; background-color: hsl(var(--card)); color: hsl(var(--card-foreground)); box-sizing: border-box; @@ -189,7 +189,7 @@ .mobile-chat-input-area { height: auto; - padding: 10px; + padding: 2px; background-color: hsl(var(--background)); /* border-top: 1px solid hsl(var(--border)); */ /* Removed for cleaner separation */ border-bottom: 1px solid hsl(var(--border)); /* Added for separation from messages area below */ @@ -205,7 +205,7 @@ /* left: 0; */ /* Handled by parent flex */ /* right: 0; */ /* Handled by parent flex */ width: 100%; /* Ensure it takes full width of its container */ - padding: 10px; + padding: 0; background-color: hsl(var(--background)); /* border-top: 1px solid hsl(var(--border)); */ /* Removed to avoid double border */ /* z-index: 30; */ /* No longer needed */ diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx index ca2fbc6f..b708a4c1 100644 --- a/components/chat-panel.tsx +++ b/components/chat-panel.tsx @@ -198,7 +198,7 @@ export const ChatPanel = forwardRef(({ messages, i onSubmit={handleSubmit} className={cn( 'max-w-full w-full', - isMobile ? 'px-2 pb-2 pt-1 h-full flex flex-col justify-center' : '' + isMobile ? 'p-0 h-full flex flex-col justify-center' : '' )} >
(({ messages, i value={input} data-testid="chat-input" className={cn( - 'resize-none w-full min-h-12 rounded-fill border border-input pl-14 pr-12 pt-3 pb-1 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', + 'resize-none w-full rounded-fill border border-input text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', isMobile - ? 'mobile-chat-input input bg-background' - : 'bg-muted' + ? 'mobile-chat-input input bg-background min-h-10 pl-4 pr-10 pt-2 pb-1' + : 'bg-muted min-h-12 pl-14 pr-12 pt-3 pb-1' )} onChange={e => { setInput(e.target.value) diff --git a/components/copilot.tsx b/components/copilot.tsx index b62b37ed..996c67e2 100644 --- a/components/copilot.tsx +++ b/components/copilot.tsx @@ -98,7 +98,7 @@ export const Copilot: React.FC = ({ inquiry }: CopilotProps) => {
-
+
{`error: ${error}`}
@@ -114,7 +114,7 @@ export const Copilot: React.FC = ({ inquiry }: CopilotProps) => { return (
-
+
{updatedQuery()}
@@ -125,7 +125,7 @@ export const Copilot: React.FC = ({ inquiry }: CopilotProps) => { return (
-

+

{data?.question || value.question} @@ -146,7 +146,7 @@ export const Copilot: React.FC = ({ inquiry }: CopilotProps) => { } />

-
-
+
+
{exampleMessages.map((item) => { const Icon = item.icon; return (