Upload folder using huggingface_hub
Browse files
client/src/components/Refinity.tsx
CHANGED
|
@@ -376,24 +376,24 @@ const Refinity: React.FC = () => {
|
|
| 376 |
navigation
|
| 377 |
pagination={{ clickable: true }}
|
| 378 |
centeredSlides
|
| 379 |
-
|
| 380 |
-
|
|
|
|
| 381 |
breakpoints={{
|
| 382 |
-
640: {
|
| 383 |
-
1024: {
|
| 384 |
-
1440: {
|
| 385 |
}}
|
| 386 |
grabCursor
|
| 387 |
-
coverflowEffect={{ rotate:
|
| 388 |
-
className="!px-
|
| 389 |
-
style={{ height: 'min(66vh, calc(100vh - 260px))', minHeight: '360px' }}
|
| 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: '
|
| 396 |
-
<div className="relative
|
| 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>
|
|
|
|
| 376 |
navigation
|
| 377 |
pagination={{ clickable: true }}
|
| 378 |
centeredSlides
|
| 379 |
+
autoHeight
|
| 380 |
+
slidesPerView={'auto'}
|
| 381 |
+
spaceBetween={8}
|
| 382 |
breakpoints={{
|
| 383 |
+
640: { spaceBetween: 12 },
|
| 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-[68vh] overflow-hidden">
|
| 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>
|