Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}

/* Mobile layout specific styles */
@media (max-width: 768px) {
@media (max-width: 1024px) {
.mobile-layout-container {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -121,7 +121,8 @@
display: flex;
gap: 20px;
padding: 0 10px;
min-width: max-content;
min-width: 100%;
justify-content: space-between;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion components/chat-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function ChatPanel({ messages, input, setInput }: ChatPanelProps) {
// Detect mobile layout
useEffect(() => {
const checkMobile = () => {
setIsMobile(window.innerWidth <= 768)
setIsMobile(window.innerWidth <= 1024)
}
checkMobile()
window.addEventListener('resize', checkMobile)
Expand Down
2 changes: 1 addition & 1 deletion components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Chat({ id }: ChatProps) {
useEffect(() => {
// Check if device is mobile
const checkMobile = () => {
setIsMobile(window.innerWidth <= 768)
setIsMobile(window.innerWidth <= 1024)
}

// Initial check
Expand Down
2 changes: 1 addition & 1 deletion components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CircleUserRound } from 'lucide-react'

export async function Sidebar() {
return (
<div className="h-screen p-2 fixed top-0 right-0 flex-col justify-center pb-24 hidden sm:flex">
<div className="h-screen p-2 fixed top-0 right-0 flex-col justify-center pb-24 hidden lg:flex">
<History location="sidebar" />
<Link href="/settings">
<Button variant="ghost" size="icon">
Expand Down
Loading