Upload folder using huggingface_hub
Browse files
client/src/components/Refinity.tsx
CHANGED
|
@@ -367,7 +367,7 @@ const Refinity: React.FC = () => {
|
|
| 367 |
</button>
|
| 368 |
</div>
|
| 369 |
</div>
|
| 370 |
-
<div className="relative">
|
| 371 |
<SwiperRoot
|
| 372 |
modules={[EffectCoverflow, Navigation, Pagination, A11y]}
|
| 373 |
effect="coverflow"
|
|
@@ -384,16 +384,18 @@ const Refinity: React.FC = () => {
|
|
| 384 |
1024: { spaceBetween: 20 },
|
| 385 |
1440: { spaceBetween: 28 }
|
| 386 |
}}
|
|
|
|
|
|
|
| 387 |
grabCursor
|
| 388 |
coverflowEffect={{ rotate: 0, stretch: 0, depth: 80, modifier: 1, slideShadows: false }}
|
| 389 |
-
className="!px-4 overflow-visible"
|
| 390 |
>
|
| 391 |
{taskVersions.map((v, idx) => {
|
| 392 |
const snippet = (v.content || '').slice(0, 220) + ((v.content || '').length > 220 ? '…' : '');
|
| 393 |
const isCenter = idx === flowIndex;
|
| 394 |
return (
|
| 395 |
<SwiperSlide key={v.id} style={{ width: 'min(92vw, 720px)', height: 'auto' }}>
|
| 396 |
-
<div className="relative rounded-2xl p-6 bg-white ring-1 ring-gray-200 shadow-xl text-base max-h-[
|
| 397 |
<div className="pointer-events-none absolute inset-0 rounded-2xl opacity-40 [background:linear-gradient(to_bottom,rgba(255,255,255,0.45),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.35),rgba(255,255,255,0)_28%)]" />
|
| 398 |
<div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-30" />
|
| 399 |
<div className="text-gray-800 text-sm mb-2">Original: {v.originalAuthor}</div>
|
|
|
|
| 367 |
</button>
|
| 368 |
</div>
|
| 369 |
</div>
|
| 370 |
+
<div className="relative min-h-0" style={{ maxHeight: 'calc(100vh - 240px)' }}>
|
| 371 |
<SwiperRoot
|
| 372 |
modules={[EffectCoverflow, Navigation, Pagination, A11y]}
|
| 373 |
effect="coverflow"
|
|
|
|
| 384 |
1024: { spaceBetween: 20 },
|
| 385 |
1440: { spaceBetween: 28 }
|
| 386 |
}}
|
| 387 |
+
observer
|
| 388 |
+
observeParents
|
| 389 |
grabCursor
|
| 390 |
coverflowEffect={{ rotate: 0, stretch: 0, depth: 80, modifier: 1, slideShadows: false }}
|
| 391 |
+
className="!px-4 overflow-visible pb-2"
|
| 392 |
>
|
| 393 |
{taskVersions.map((v, idx) => {
|
| 394 |
const snippet = (v.content || '').slice(0, 220) + ((v.content || '').length > 220 ? '…' : '');
|
| 395 |
const isCenter = idx === flowIndex;
|
| 396 |
return (
|
| 397 |
<SwiperSlide key={v.id} style={{ width: 'min(92vw, 720px)', height: 'auto' }}>
|
| 398 |
+
<div className="relative rounded-2xl p-6 bg-white ring-1 ring-gray-200 shadow-xl text-base max-h-[60vh] overflow-hidden">
|
| 399 |
<div className="pointer-events-none absolute inset-0 rounded-2xl opacity-40 [background:linear-gradient(to_bottom,rgba(255,255,255,0.45),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.35),rgba(255,255,255,0)_28%)]" />
|
| 400 |
<div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-30" />
|
| 401 |
<div className="text-gray-800 text-sm mb-2">Original: {v.originalAuthor}</div>
|