linguabot commited on
Commit
629ed2a
·
verified ·
1 Parent(s): 38e24e1

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. client/src/components/Refinity.tsx +3 -3
client/src/components/Refinity.tsx CHANGED
@@ -405,7 +405,7 @@ const Refinity: React.FC = () => {
405
  </button>
406
  </div>
407
  </div>
408
- <div className={`relative min-h-0 ${isFullscreen ? 'pt-1 pb-2' : 'pt-2 pb-6'}`} style={{ maxHeight: isFullscreen ? 'calc(100vh - 80px)' : 'calc(100vh - 160px)' }}>
409
  <style>{`
410
  .mySwiper .swiper-pagination { z-index: 5; pointer-events: none; }
411
  .mySwiper .swiper-pagination-bullet { pointer-events: auto; }
@@ -437,7 +437,7 @@ const Refinity: React.FC = () => {
437
  grabCursor
438
  coverflowEffect={{ rotate: 0, stretch: 0, depth: 80, modifier: 1, slideShadows: false }}
439
  className="mySwiper !px-4 overflow-visible pb-2"
440
- style={{ height: isFullscreen ? 'calc(100vh - 96px)' : 'min(76vh, calc(100vh - 220px))', minHeight: '340px' }}
441
  >
442
  {taskVersions.map((v, idx) => {
443
  const limit = 160;
@@ -507,7 +507,7 @@ const Refinity: React.FC = () => {
507
  {/* External V2 Revise Button removed per user request */}
508
 
509
  {compareUIOpen && (
510
- <div className="mt-4 p-3 rounded-2xl border border-gray-200 bg-white/60 backdrop-blur">
511
  <div className="flex flex-col md:flex-row gap-3 md:items-end">
512
  <div className="flex-1">
513
  <label className="block text-sm text-gray-700 mb-1">Version A (previous)</label>
 
405
  </button>
406
  </div>
407
  </div>
408
+ <div className={`relative min-h-0 ${isFullscreen ? (compareUIOpen ? 'pt-1 pb-24' : 'pt-1 pb-2') : (compareUIOpen ? 'pt-2 pb-28' : 'pt-2 pb-6')}`} style={{ maxHeight: isFullscreen ? 'calc(100vh - 80px)' : 'calc(100vh - 160px)' }}>
409
  <style>{`
410
  .mySwiper .swiper-pagination { z-index: 5; pointer-events: none; }
411
  .mySwiper .swiper-pagination-bullet { pointer-events: auto; }
 
437
  grabCursor
438
  coverflowEffect={{ rotate: 0, stretch: 0, depth: 80, modifier: 1, slideShadows: false }}
439
  className="mySwiper !px-4 overflow-visible pb-2"
440
+ style={{ height: compareUIOpen ? (isFullscreen ? 'calc(100vh - 180px)' : 'min(70vh, calc(100vh - 300px))') : (isFullscreen ? 'calc(100vh - 96px)' : 'min(76vh, calc(100vh - 220px))'), minHeight: '340px' }}
441
  >
442
  {taskVersions.map((v, idx) => {
443
  const limit = 160;
 
507
  {/* External V2 Revise Button removed per user request */}
508
 
509
  {compareUIOpen && (
510
+ <div className="mt-4 mb-8 p-3 rounded-2xl border border-gray-200 bg-white/60 backdrop-blur">
511
  <div className="flex flex-col md:flex-row gap-3 md:items-end">
512
  <div className="flex-1">
513
  <label className="block text-sm text-gray-700 mb-1">Version A (previous)</label>