linguabot commited on
Commit
371074c
·
verified ·
1 Parent(s): 863a911

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 min-h-0" style={{ maxHeight: 'calc(100vh - 220px)' }}>
371
  <SwiperRoot
372
  modules={[EffectCoverflow, Navigation, Pagination, A11y]}
373
  effect="coverflow"
@@ -389,14 +389,14 @@ const Refinity: React.FC = () => {
389
  grabCursor
390
  coverflowEffect={{ rotate: 0, stretch: 0, depth: 80, modifier: 1, slideShadows: false }}
391
  className="mySwiper !px-4 overflow-visible pb-2"
392
- style={{ height: 'min(72vh, calc(100vh - 280px))', minHeight: '360px' }}
393
  >
394
  {taskVersions.map((v, idx) => {
395
  const limit = 160;
396
  const snippet = (v.content || '').slice(0, limit) + ((v.content || '').length > limit ? '…' : '');
397
  const isCenter = idx === flowIndex;
398
  return (
399
- <SwiperSlide key={v.id} style={{ width: 'clamp(360px, 64vw, 920px)', height: '100%' }}>
400
  <div className={`relative h-full rounded-2xl p-6 bg-white ring-1 ring-gray-200 shadow-xl text-base overflow-hidden flex flex-col ${isCenter ? '' : 'opacity-95'}`}>
401
  <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%)]" />
402
  <div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-30" />
 
367
  </button>
368
  </div>
369
  </div>
370
+ <div className="relative min-h-0" style={{ maxHeight: 'calc(100vh - 200px)' }}>
371
  <SwiperRoot
372
  modules={[EffectCoverflow, Navigation, Pagination, A11y]}
373
  effect="coverflow"
 
389
  grabCursor
390
  coverflowEffect={{ rotate: 0, stretch: 0, depth: 80, modifier: 1, slideShadows: false }}
391
  className="mySwiper !px-4 overflow-visible pb-2"
392
+ style={{ height: 'min(78vh, calc(100vh - 240px))', minHeight: '380px' }}
393
  >
394
  {taskVersions.map((v, idx) => {
395
  const limit = 160;
396
  const snippet = (v.content || '').slice(0, limit) + ((v.content || '').length > limit ? '…' : '');
397
  const isCenter = idx === flowIndex;
398
  return (
399
+ <SwiperSlide key={v.id} style={{ width: 'clamp(320px, 48vw, 720px)', height: '100%' }}>
400
  <div className={`relative h-full rounded-2xl p-6 bg-white ring-1 ring-gray-200 shadow-xl text-base overflow-hidden flex flex-col ${isCenter ? '' : 'opacity-95'}`}>
401
  <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%)]" />
402
  <div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-30" />
client/src/pages/Toolkit.tsx CHANGED
@@ -624,7 +624,7 @@ const Toolkit: React.FC = () => {
624
  <p className="text-gray-600 text-sm">A peer-based revision platform.</p>
625
  </div>
626
  </div>
627
- <div className="rounded-lg overflow-visible">
628
  <Refinity />
629
  </div>
630
  </div>
 
624
  <p className="text-gray-600 text-sm">A peer-based revision platform.</p>
625
  </div>
626
  </div>
627
+ <div className="rounded-lg overflow-visible max-w-4xl mx-auto">
628
  <Refinity />
629
  </div>
630
  </div>