mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-29 14:00:52 +01:00
feat: add slide-down animation to FloatingBar and enhance search behavior in DataBar
This commit is contained in:
@@ -7,7 +7,7 @@ import AddButton from './AddButton';
|
||||
|
||||
const FloatingBar = ({children}) => (
|
||||
<>
|
||||
<div className='fixed top-0 left-0 right-0 z-50 bg-gradient-to-br from-gray-800 to-gray-900 border-b border-gray-700 shadow-xl backdrop-blur-sm'>
|
||||
<div className='fixed top-0 left-0 right-0 z-50 animate-slide-down bg-gradient-to-br from-gray-800 to-gray-900 border-b border-gray-700 shadow-xl backdrop-blur-sm'>
|
||||
<div className='max-w-screen-2xl mx-auto px-4 sm:px-6 lg:px-8'>
|
||||
<div className='flex items-center gap-4 h-16'>{children}</div>
|
||||
</div>
|
||||
@@ -47,8 +47,15 @@ const DataBar = ({
|
||||
}, []);
|
||||
|
||||
const handleSearch = term => {
|
||||
// First set the search term and trigger the search
|
||||
setActiveSearch(term);
|
||||
onSearch(term);
|
||||
|
||||
// Then smoothly scroll to top
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
};
|
||||
|
||||
const controls = (
|
||||
|
||||
Reference in New Issue
Block a user