mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-05 18:15:06 +08:00
Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page #9869 (#10572)
### What problem does this PR solve? Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -16,23 +16,35 @@ const FlipCard3D = (props: IProps) => {
|
||||
setIsFlipped(true);
|
||||
}
|
||||
}, [isLoginPage]);
|
||||
|
||||
const isBackfaceVisibilitySupported = () => {
|
||||
return (
|
||||
CSS.supports('backface-visibility', 'hidden') ||
|
||||
CSS.supports('-webkit-backface-visibility', 'hidden') ||
|
||||
CSS.supports('-moz-backface-visibility', 'hidden') ||
|
||||
CSS.supports('-ms-backface-visibility', 'hidden')
|
||||
);
|
||||
};
|
||||
return (
|
||||
<div className="relative w-full h-full perspective-1000">
|
||||
<div
|
||||
className={`relative w-full h-full transition-transform transform-style-3d ${isFlipped ? 'rotate-y-180' : ''}`}
|
||||
>
|
||||
{/* Front Face */}
|
||||
<div className="absolute inset-0 flex items-center justify-center backface-hidden">
|
||||
{children}
|
||||
</div>
|
||||
<>
|
||||
{isBackfaceVisibilitySupported() && (
|
||||
<div className="relative w-full h-full perspective-1000">
|
||||
<div
|
||||
className={`relative w-full h-full transition-transform transform-style-3d ${isFlipped ? 'rotate-y-180' : ''}`}
|
||||
>
|
||||
{/* Front Face */}
|
||||
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-0">
|
||||
{children}
|
||||
</div>
|
||||
|
||||
{/* Back Face */}
|
||||
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-180">
|
||||
{children}
|
||||
{/* Back Face */}
|
||||
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-180">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{!isBackfaceVisibilitySupported() && <>{children}</>}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user