fix(profile): move Check Size Memory button beside Import Backup
This commit is contained in:
1 parent
1f4813c786
commit
3844f04cb5
1 file changed
+16
-18
@@ -661,6 +661,15 @@ export default function ProfilePage() {
|
|||||||
>
|
>
|
||||||
Import Backup
|
Import Backup
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
icon="memory"
|
||||||
|
onClick={handleMemoryCheck}
|
||||||
|
loading={memoryLoading}
|
||||||
|
className="w-full sm:w-auto"
|
||||||
|
>
|
||||||
|
Check Size Memory
|
||||||
|
</Button>
|
||||||
<input
|
<input
|
||||||
ref={importFileRef}
|
ref={importFileRef}
|
||||||
type="file"
|
type="file"
|
||||||
@@ -674,24 +683,13 @@ export default function ProfilePage() {
|
|||||||
{dbStatus.message}
|
{dbStatus.message}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<div className="flex flex-col gap-1.5 mt-1 pt-3 border-t border-border">
|
{memoryInfo && (
|
||||||
<Button
|
<pre className="text-[11px] font-mono text-text-muted whitespace-pre-wrap break-all">
|
||||||
variant="outline"
|
{memoryInfo.error
|
||||||
icon="memory"
|
? `Error: ${memoryInfo.error}`
|
||||||
onClick={handleMemoryCheck}
|
: memoryLine(memoryInfo)}
|
||||||
loading={memoryLoading}
|
</pre>
|
||||||
className="w-full sm:w-auto self-start"
|
)}
|
||||||
>
|
|
||||||
Check Size Memory
|
|
||||||
</Button>
|
|
||||||
{memoryInfo && (
|
|
||||||
<pre className="text-[11px] font-mono text-text-muted whitespace-pre-wrap break-all">
|
|
||||||
{memoryInfo.error
|
|
||||||
? `Error: ${memoryInfo.error}`
|
|
||||||
: memoryLine(memoryInfo)}
|
|
||||||
</pre>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user