linguabot commited on
Commit
b925a67
·
verified ·
1 Parent(s): b232c9c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. client/src/components/Refinity.tsx +10 -10
client/src/components/Refinity.tsx CHANGED
@@ -376,24 +376,24 @@ const Refinity: React.FC = () => {
376
  navigation
377
  pagination={{ clickable: true }}
378
  centeredSlides
379
- slidesPerView={1.12}
380
- spaceBetween={12}
 
381
  breakpoints={{
382
- 640: { slidesPerView: 1.2, spaceBetween: 16 },
383
- 1024: { slidesPerView: 1.6, spaceBetween: 24 },
384
- 1440: { slidesPerView: 1.8, spaceBetween: 32 }
385
  }}
386
  grabCursor
387
- coverflowEffect={{ rotate: 8, stretch: -20, depth: 160, modifier: 1, slideShadows: false }}
388
- className="!px-6 overflow-visible"
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: 'clamp(320px, 56vw, 720px)' }}>
396
- <div className="relative h-full rounded-2xl p-6 bg-white ring-1 ring-gray-200 shadow-xl text-base">
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>