feat: move open app directory into icon folder (#1879)
This commit is contained in:
parent
8151ef0313
commit
509f6cba39
@ -104,7 +104,8 @@ const DataFolder = () => {
|
||||
/>
|
||||
<FolderOpenIcon
|
||||
size={16}
|
||||
className="absolute right-2 top-1/2 -translate-y-1/2"
|
||||
className="absolute right-2 top-1/2 z-10 -translate-y-1/2 cursor-pointer"
|
||||
onClick={() => window.core?.api?.openAppDirectory()}
|
||||
/>
|
||||
</div>
|
||||
<Button
|
||||
|
||||
@ -170,30 +170,6 @@ const Advanced = () => {
|
||||
<Switch checked={ignoreSSL} onCheckedChange={(e) => setIgnoreSSL(e)} />
|
||||
</div>
|
||||
|
||||
{/* Open app directory */}
|
||||
{window.electronAPI && (
|
||||
<div className="flex w-full items-start justify-between border-b border-border py-4 first:pt-0 last:border-none">
|
||||
<div className="w-4/5 flex-shrink-0 space-y-1.5">
|
||||
<div className="flex gap-x-2">
|
||||
<h6 className="text-sm font-semibold capitalize">
|
||||
Open App Directory
|
||||
</h6>
|
||||
</div>
|
||||
<p className="whitespace-pre-wrap leading-relaxed">
|
||||
Open the directory where your app data, like conversation history
|
||||
and model configurations, is located.
|
||||
</p>
|
||||
</div>
|
||||
<Button
|
||||
size="sm"
|
||||
themes="secondaryBlue"
|
||||
onClick={() => window.core?.api?.openAppDirectory()}
|
||||
>
|
||||
Open
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Clear log */}
|
||||
<div className="flex w-full items-start justify-between border-b border-border py-4 first:pt-0 last:border-none">
|
||||
<div className="flex-shrink-0 space-y-1.5">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user