Upload folder using huggingface_hub
Browse files
client/src/components/Refinity.tsx
CHANGED
|
@@ -417,6 +417,9 @@ const Refinity: React.FC = () => {
|
|
| 417 |
const limit = 160;
|
| 418 |
const snippet = (v.content || '').slice(0, limit) + ((v.content || '').length > limit ? '…' : '');
|
| 419 |
const isCenter = idx === flowIndex;
|
|
|
|
|
|
|
|
|
|
| 420 |
return (
|
| 421 |
<SwiperSlide key={v.id} style={{ width: 'clamp(320px, 48vw, 720px)', height: isFullscreen ? '72vh' : '62.4vh' }}>
|
| 422 |
<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 ? 'z-10' : 'opacity-95 z-0'}`}>
|
|
@@ -429,7 +432,11 @@ const Refinity: React.FC = () => {
|
|
| 429 |
<div className="mt-4 flex gap-3">
|
| 430 |
<button
|
| 431 |
type="button"
|
| 432 |
-
onClick={() => {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 433 |
className="inline-flex items-center justify-center gap-2 px-3 py-2 text-sm font-medium rounded-2xl text-black ring-1 ring-inset ring-white/50 backdrop-blur-md bg-white/30 active:translate-y-0.5 transition-all duration-200 cursor-pointer"
|
| 434 |
>
|
| 435 |
Full Text
|
|
@@ -538,8 +545,20 @@ const Refinity: React.FC = () => {
|
|
| 538 |
.mySwiper .swiper-button-prev:after, .mySwiper .swiper-button-next:after { font-size: 18px; color: #94a3b8; }
|
| 539 |
.mySwiper .swiper-pagination { bottom: 6px; }
|
| 540 |
/* Ensure buttons inside slides are clickable */
|
| 541 |
-
.mySwiper .swiper-slide button {
|
| 542 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 543 |
` }} />
|
| 544 |
</div>
|
| 545 |
{compareModalOpen && (
|
|
|
|
| 417 |
const limit = 160;
|
| 418 |
const snippet = (v.content || '').slice(0, limit) + ((v.content || '').length > limit ? '…' : '');
|
| 419 |
const isCenter = idx === flowIndex;
|
| 420 |
+
if (v.versionNumber === 2) {
|
| 421 |
+
console.log('v2 debug - idx:', idx, 'flowIndex:', flowIndex, 'isCenter:', isCenter, 'v.id:', v.id);
|
| 422 |
+
}
|
| 423 |
return (
|
| 424 |
<SwiperSlide key={v.id} style={{ width: 'clamp(320px, 48vw, 720px)', height: isFullscreen ? '72vh' : '62.4vh' }}>
|
| 425 |
<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 ? 'z-10' : 'opacity-95 z-0'}`}>
|
|
|
|
| 432 |
<div className="mt-4 flex gap-3">
|
| 433 |
<button
|
| 434 |
type="button"
|
| 435 |
+
onClick={() => {
|
| 436 |
+
console.log('Full Text clicked for version:', v.versionNumber, 'id:', v.id, 'isCenter:', isCenter, 'flowIndex:', flowIndex);
|
| 437 |
+
setPreviewVersionId(v.id);
|
| 438 |
+
setStage('preview');
|
| 439 |
+
}}
|
| 440 |
className="inline-flex items-center justify-center gap-2 px-3 py-2 text-sm font-medium rounded-2xl text-black ring-1 ring-inset ring-white/50 backdrop-blur-md bg-white/30 active:translate-y-0.5 transition-all duration-200 cursor-pointer"
|
| 441 |
>
|
| 442 |
Full Text
|
|
|
|
| 545 |
.mySwiper .swiper-button-prev:after, .mySwiper .swiper-button-next:after { font-size: 18px; color: #94a3b8; }
|
| 546 |
.mySwiper .swiper-pagination { bottom: 6px; }
|
| 547 |
/* Ensure buttons inside slides are clickable */
|
| 548 |
+
.mySwiper .swiper-slide button {
|
| 549 |
+
pointer-events: auto !important;
|
| 550 |
+
position: relative;
|
| 551 |
+
z-index: 999 !important;
|
| 552 |
+
transform: translateZ(0) !important;
|
| 553 |
+
-webkit-transform: translateZ(0) !important;
|
| 554 |
+
}
|
| 555 |
+
.mySwiper .swiper-slide button:hover { transform: translateY(-0.5px) translateZ(0) !important; }
|
| 556 |
+
/* Force button clickability on all slides */
|
| 557 |
+
.mySwiper .swiper-slide-active button,
|
| 558 |
+
.mySwiper .swiper-slide button {
|
| 559 |
+
pointer-events: auto !important;
|
| 560 |
+
z-index: 999 !important;
|
| 561 |
+
}
|
| 562 |
` }} />
|
| 563 |
</div>
|
| 564 |
{compareModalOpen && (
|