Revert "fixfix?"

This reverts commit 0ec22cbdc8.
This commit is contained in:
2026-03-29 20:34:00 +02:00
parent 0ec22cbdc8
commit 8327e1a300
+6 -5
View File
@@ -9,10 +9,12 @@ import Footer from '../components/Footer/Footer';
// Debounce hook // Debounce hook
function useDebouncedValue(value, delay = 250) { function useDebouncedValue(value, delay = 250) {
const [debounced, setDebounced] = useState(value); const [debounced, setDebounced] = useState(value);
useEffect(() => { useEffect(() => {
const handler = setTimeout(() => setDebounced(value), delay); const handler = setTimeout(() => setDebounced(value), delay);
return () => clearTimeout(handler); return () => clearTimeout(handler);
}, [value, delay]); }, [value, delay]);
return debounced; return debounced;
} }
@@ -51,13 +53,14 @@ function HomePage() {
.sort((a, b) => a.name.localeCompare(b.name)); .sort((a, b) => a.name.localeCompare(b.name));
return ( return (
<div style={{ position: 'relative', minHeight: '100vh', paddingBottom: '60px' }}> <div style={{ display: 'flex', flexDirection: 'column', minHeight: '100vh' }}>
{/* Main content scrollable area */} {/* Main content scrollable area */}
<div style={{ display: 'flex', height: '100%', overflow: 'hidden' }}> <div style={{ display: 'flex', flex: 1, overflow: 'hidden' }}>
{/* Left panel: card list */} {/* Left panel: card list */}
<div style={{ flex: 2, borderRight: '1px solid #ccc', padding: '1rem', overflowY: 'auto' }}> <div style={{ flex: 2, borderRight: '1px solid #ccc', padding: '1rem', overflowY: 'auto' }}>
<h2>Card List</h2> <h2>Card List</h2>
<SearchBar searchTerm={searchTerm} setSearchTerm={setSearchTerm} /> <SearchBar searchTerm={searchTerm} setSearchTerm={setSearchTerm} />
<Virtuoso <Virtuoso
style={{ height: '100%' }} style={{ height: '100%' }}
data={filteredCards} data={filteredCards}
@@ -84,11 +87,9 @@ function HomePage() {
</div> </div>
</div> </div>
{/* Footer fixed at the bottom */} {/* Footer at the bottom */}
<div style={{ position: 'fixed', bottom: 0, left: 0, right: 0 }}>
<Footer /> <Footer />
</div> </div>
</div>
); );
} }