fix(gallery): feedback filter headline + horizontal icons in sidebar (compact variant); ensure sidebar content scrolls (flex-col container)

This commit is contained in:
2025-09-16 09:15:47 +02:00
parent 4b64b80b20
commit 3a6d06192a
2 changed files with 34 additions and 29 deletions
@@ -36,7 +36,11 @@ export const GalleryFilter: React.FC<GalleryFilterProps> = ({
if (variant === 'compact') {
return (
<div className={`${className}`}>
<div className="flex flex-col items-start gap-1">
<div className="flex items-center gap-2">
<span className="text-sm text-neutral-700 whitespace-nowrap">
{t('gallery.feedbackFilter', 'Feedback Filter')}
</span>
<div className="flex items-center gap-1">
<Button
variant={currentFilter === 'all' ? 'primary' : 'outline'}
size="sm"
@@ -66,6 +70,7 @@ export const GalleryFilter: React.FC<GalleryFilterProps> = ({
</Button>
</div>
</div>
</div>
);
}
@@ -114,7 +114,7 @@ export const GallerySidebar: React.FC<GallerySidebarProps> = ({
<div
ref={sidebarRef}
className={`
fixed top-0 left-0 h-full bg-white shadow-xl z-50 transition-transform duration-300 ease-in-out
fixed top-0 left-0 h-full bg-white shadow-xl z-50 transition-transform duration-300 ease-in-out flex flex-col
${isMobile ? 'w-full max-w-sm' : 'w-80'}
${isOpen ? 'translate-x-0' : '-translate-x-full'}
`}