Skip to content

An AI-powered search engine with a generative UI

fix: adjust layout and spacing for better mobile experience

Yoshiki Miura707853c4f564
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx
index 0f83c0a1..78eefe94 100644
--- a/components/chat-panel.tsx
+++ b/components/chat-panel.tsx
@@ -80,7 +80,7 @@ export function ChatPanel({
onSubmit={handleSubmit}
className={cn(
'max-w-3xl w-full mx-auto',
- messages.length > 0 ? 'px-0 py-4' : 'px-6'
+ messages.length > 0 ? 'px-2 py-4' : 'px-6'
)}
>
<div className="relative flex items-center w-full gap-2">
diff --git a/components/chat.tsx b/components/chat.tsx
index e1b3f466..bef84f40 100644
--- a/components/chat.tsx
+++ b/components/chat.tsx
@@ -51,7 +51,7 @@ export function Chat({
}
return (
- <div className="flex flex-col w-full max-w-3xl pt-10 pb-20 mx-auto stretch">
+ <div className="flex flex-col w-full max-w-3xl pt-14 pb-20 mx-auto stretch">
<ChatMessages
messages={messages}
onQuerySelect={onQuerySelect}
diff --git a/components/footer.tsx b/components/footer.tsx
index 206b90e9..8c1cd36c 100644
--- a/components/footer.tsx
+++ b/components/footer.tsx
@@ -1,11 +1,11 @@
-import React from 'react'
import Link from 'next/link'
+import React from 'react'
import { SiDiscord, SiGithub, SiX } from 'react-icons/si'
import { Button } from './ui/button'
const Footer: React.FC = () => {
return (
- <footer className="w-fit p-1 md:p-2 fixed bottom-0 right-0">
+ <footer className="w-fit p-1 md:p-2 fixed bottom-0 right-0 hidden lg:block">
<div className="flex justify-end">
<Button
variant={'ghost'}
diff --git a/components/header.tsx b/components/header.tsx
index 8452c75f..1afb4857 100644
--- a/components/header.tsx
+++ b/components/header.tsx
@@ -1,12 +1,12 @@
+import { cn } from '@/lib/utils'
import React from 'react'
+import HistoryContainer from './history-container'
import { ModeToggle } from './mode-toggle'
import { IconLogo } from './ui/icons'
-import { cn } from '@/lib/utils'
-import HistoryContainer from './history-container'
export const Header: React.FC = async () => {
return (
- <header className="fixed w-full p-1 md:p-2 flex justify-between items-center z-10 backdrop-blur md:backdrop-blur-none bg-background/80 md:bg-transparent">
+ <header className="fixed w-full p-2 flex justify-between items-center z-10 backdrop-blur md:backdrop-blur-none bg-background/80 md:bg-transparent">
<div>
<a href="/">
<IconLogo className={cn('w-5 h-5')} />
@@ -15,7 +15,7 @@ export const Header: React.FC = async () => {
</div>
<div className="flex gap-0.5">
<ModeToggle />
- {/* <HistoryContainer location="header" /> */}
+ <HistoryContainer location="header" />
</div>
</header>
)