Upload folder using huggingface_hub
Browse files
client/src/components/Refinity.tsx
CHANGED
|
@@ -913,18 +913,21 @@ const EditorPane: React.FC<{ source: string; initialTranslation: string; onBack:
|
|
| 913 |
<div className="w-1/2">
|
| 914 |
<div className="mb-2 text-gray-700 text-sm flex items-center justify-between">
|
| 915 |
<span>Translation</span>
|
| 916 |
-
|
| 917 |
-
{
|
| 918 |
-
|
|
|
|
|
|
|
| 919 |
</div>
|
| 920 |
<textarea
|
| 921 |
value={text}
|
| 922 |
onChange={(e)=>setText(e.target.value)}
|
| 923 |
-
className="relative z-10 w-full px-4 py-3 border border-ui-border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 bg-white
|
| 924 |
style={{
|
| 925 |
minHeight: textareaHeight,
|
| 926 |
height: textareaHeight,
|
| 927 |
-
resize: '
|
|
|
|
| 928 |
}}
|
| 929 |
/>
|
| 930 |
<div className="mt-4 flex gap-3 relative">
|
|
|
|
| 913 |
<div className="w-1/2">
|
| 914 |
<div className="mb-2 text-gray-700 text-sm flex items-center justify-between">
|
| 915 |
<span>Translation</span>
|
| 916 |
+
{!isFullscreen && (
|
| 917 |
+
<button onClick={onToggleFullscreen} className="inline-flex items-center px-2 py-1 text-xs rounded-xl bg-white/60 ring-1 ring-gray-200 text-gray-800 hover:bg-white">
|
| 918 |
+
Full Screen
|
| 919 |
+
</button>
|
| 920 |
+
)}
|
| 921 |
</div>
|
| 922 |
<textarea
|
| 923 |
value={text}
|
| 924 |
onChange={(e)=>setText(e.target.value)}
|
| 925 |
+
className="relative z-10 w-full px-4 py-3 border border-ui-border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 bg-white"
|
| 926 |
style={{
|
| 927 |
minHeight: textareaHeight,
|
| 928 |
height: textareaHeight,
|
| 929 |
+
resize: 'none',
|
| 930 |
+
overflowY: 'auto'
|
| 931 |
}}
|
| 932 |
/>
|
| 933 |
<div className="mt-4 flex gap-3 relative">
|