Upload folder using huggingface_hub
Browse files
client/src/components/Refinity.tsx
CHANGED
|
@@ -250,13 +250,13 @@ const Refinity: React.FC = () => {
|
|
| 250 |
<div className="md:col-span-1">
|
| 251 |
<label className="block text-sm text-gray-700 mb-1">Task</label>
|
| 252 |
<div className="relative inline-block w-full md:w-64">
|
| 253 |
-
<button type="button" onClick={()=>setTaskMenuOpen(o=>!o)} className="relative w-full text-left inline-flex items-center justify-between px-3 py-1.5 rounded-2xl ring-1 ring-inset ring-
|
| 254 |
<span className="truncate text-gray-900">{tasks.find(t=>t.id===selectedTaskId)?.title || 'Select a task'}</span>
|
| 255 |
<span className="ml-2 text-gray-700">▾</span>
|
| 256 |
</button>
|
| 257 |
{taskMenuOpen && (
|
| 258 |
<div className="absolute z-20 mt-2 w-full">
|
| 259 |
-
<div className="relative rounded-2xl bg-white/10 backdrop-blur-md ring-1 ring-inset ring-
|
| 260 |
<div className="pointer-events-none absolute inset-0 rounded-2xl opacity-50 [background:linear-gradient(to_bottom,rgba(255,255,255,0.3),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.28),rgba(255,255,255,0)_28%)]" />
|
| 261 |
<div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-45" />
|
| 262 |
<ul className="relative max-h-64 overflow-auto text-sm">
|
|
@@ -386,7 +386,7 @@ const Refinity: React.FC = () => {
|
|
| 386 |
grabCursor
|
| 387 |
coverflowEffect={{ rotate: 8, stretch: -20, depth: 160, modifier: 1, slideShadows: false }}
|
| 388 |
className="!px-6 overflow-visible"
|
| 389 |
-
style={{ height: '
|
| 390 |
>
|
| 391 |
{taskVersions.map((v, idx) => {
|
| 392 |
const snippet = (v.content || '').slice(0, 220) + ((v.content || '').length > 220 ? '…' : '');
|
|
|
|
| 250 |
<div className="md:col-span-1">
|
| 251 |
<label className="block text-sm text-gray-700 mb-1">Task</label>
|
| 252 |
<div className="relative inline-block w-full md:w-64">
|
| 253 |
+
<button type="button" onClick={()=>setTaskMenuOpen(o=>!o)} className="relative w-full text-left inline-flex items-center justify-between px-3 py-1.5 rounded-2xl border border-gray-200 ring-1 ring-inset ring-gray-200 backdrop-blur-md bg-white/30 text-sm">
|
| 254 |
<span className="truncate text-gray-900">{tasks.find(t=>t.id===selectedTaskId)?.title || 'Select a task'}</span>
|
| 255 |
<span className="ml-2 text-gray-700">▾</span>
|
| 256 |
</button>
|
| 257 |
{taskMenuOpen && (
|
| 258 |
<div className="absolute z-20 mt-2 w-full">
|
| 259 |
+
<div className="relative rounded-2xl bg-white/10 backdrop-blur-md ring-1 ring-inset ring-gray-200 border border-gray-200 shadow-lg overflow-hidden">
|
| 260 |
<div className="pointer-events-none absolute inset-0 rounded-2xl opacity-50 [background:linear-gradient(to_bottom,rgba(255,255,255,0.3),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.28),rgba(255,255,255,0)_28%)]" />
|
| 261 |
<div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-45" />
|
| 262 |
<ul className="relative max-h-64 overflow-auto text-sm">
|
|
|
|
| 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 ? '…' : '');
|