mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-27 07:54:19 +00:00
perf: adjust ui
This commit is contained in:
@@ -84,10 +84,10 @@ export default function FileUploadZone({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className="mb-4">
|
<Card className="mb-4">
|
||||||
<CardContent className="p-6">
|
<CardContent className="p-4">
|
||||||
<div
|
<div
|
||||||
className={`
|
className={`
|
||||||
relative border-2 border-dashed rounded-lg p-8 text-center transition-colors
|
relative border-2 border-dashed rounded-lg p-4 text-center transition-colors
|
||||||
${
|
${
|
||||||
isDragOver
|
isDragOver
|
||||||
? 'border-blue-500 bg-blue-50'
|
? 'border-blue-500 bg-blue-50'
|
||||||
@@ -109,10 +109,10 @@ export default function FileUploadZone({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<label htmlFor="file-upload" className="cursor-pointer block">
|
<label htmlFor="file-upload" className="cursor-pointer block">
|
||||||
<div className="space-y-4">
|
<div className="space-y-2">
|
||||||
<div className="mx-auto w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center">
|
<div className="mx-auto w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center">
|
||||||
<svg
|
<svg
|
||||||
className="w-6 h-6 text-gray-400"
|
className="w-5 h-5 text-gray-400"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -127,12 +127,12 @@ export default function FileUploadZone({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p className="text-lg font-medium text-gray-900">
|
<p className="text-base font-medium text-gray-900">
|
||||||
{isUploading
|
{isUploading
|
||||||
? t('knowledge.documentsTab.uploading')
|
? t('knowledge.documentsTab.uploading')
|
||||||
: t('knowledge.documentsTab.dragAndDrop')}
|
: t('knowledge.documentsTab.dragAndDrop')}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-gray-500 mt-1">
|
<p className="text-xs text-gray-500 mt-1">
|
||||||
{t('knowledge.documentsTab.supportedFormats')}
|
{t('knowledge.documentsTab.supportedFormats')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export default function KBDoc({ kbId }: { kbId: string }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto py-4">
|
<div className="container mx-auto py-2">
|
||||||
<FileUploadZone
|
<FileUploadZone
|
||||||
kbId={kbId}
|
kbId={kbId}
|
||||||
onUploadSuccess={handleUploadSuccess}
|
onUploadSuccess={handleUploadSuccess}
|
||||||
|
|||||||
Reference in New Issue
Block a user