Skip to content

An AI-powered search engine with a generative UI

refactor: update visibility classes for responsive design in HistoryContainer and Sidebar components

Yoshiki Miurabafa57a0ae7d
diff --git a/components/history-container.tsx b/components/history-container.tsx
index 7414c530..4765b7ca 100644
--- a/components/history-container.tsx
+++ b/components/history-container.tsx
@@ -17,7 +17,7 @@ const HistoryContainer: React.FC<HistoryContainerProps> = async ({
return (
<div
- className={location === 'header' ? 'block sm:hidden' : 'hidden sm:block'}
+ className={location === 'header' ? 'block lg:hidden' : 'hidden sm:block'}
>
<History location={location}>
<HistoryList userId="anonymous" />
diff --git a/components/sidebar.tsx b/components/sidebar.tsx
index b70c76c7..46ea06d0 100644
--- a/components/sidebar.tsx
+++ b/components/sidebar.tsx
@@ -2,7 +2,7 @@ import HistoryContainer from './history-container'
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">
<HistoryContainer location="sidebar" />
</div>
)