fix(mobile+navbar): remove white cloudy bottom haze, immediate solid navbar transition on scroll, and restore horizontal category scroller on mobile

This commit is contained in:
2026-11-05 17:24:02 +05:30
parent d13008b334
commit acba642b05
4 changed files with 40 additions and 37 deletions
@@ -159,7 +159,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
const [hoveredId, setHoveredId] = useState<string | null>(null);
return (
<div className="flex flex-col md:flex-row gap-4 sm:gap-6 w-full items-start">
<div className="flex flex-row md:flex-row gap-4 sm:gap-6 w-full items-start overflow-x-auto md:overflow-visible pb-2 no-scrollbar scroll-smooth snap-x snap-mandatory touch-pan-x -mx-4 px-4 md:mx-0 md:px-0">
{items.map((item) => {
const isHovered = hoveredId === item.id;
const hasOtherHovered = hoveredId !== null && !isHovered;
@@ -182,7 +182,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
flexShrink: 1,
flexBasis: '0%',
}}
className="w-full transition-[flex-grow] duration-1000 ease-[cubic-bezier(0.16,1,0.3,1)] will-change-[flex-grow] flex flex-col min-w-0"
className="w-[82vw] sm:w-[320px] md:w-full shrink-0 md:shrink snap-start transition-[flex-grow] duration-1000 ease-[cubic-bezier(0.16,1,0.3,1)] will-change-[flex-grow] flex flex-col min-w-0"
>
{/* Window Container with strictly locked pixel height & landscape aspect */}
{item.mediaType === 'comparison' ? (