fix: advanced settings full width, remove incorrect create session button, center browse folders text

This commit is contained in:
Shantur Rathore
2025-10-28 21:58:24 +00:00
parent 3937ced8f7
commit 317d076117
2 changed files with 6 additions and 15 deletions

View File

@@ -243,37 +243,28 @@ const FolderSelectionView: Component<FolderSelectionViewProps> = (props) => {
<p class="panel-subtitle">Select any folder on your computer</p> <p class="panel-subtitle">Select any folder on your computer</p>
</div> </div>
<div class="panel-body space-y-3"> <div class="panel-body">
<button <button
onClick={handleBrowse} onClick={handleBrowse}
disabled={props.isLoading} disabled={props.isLoading}
class="button-primary w-full flex items-center justify-between text-sm disabled:cursor-not-allowed" class="button-primary w-full flex items-center justify-center text-sm disabled:cursor-not-allowed"
onMouseEnter={() => setFocusMode("new")} onMouseEnter={() => setFocusMode("new")}
> >
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<FolderPlus class="w-4 h-4" /> <FolderPlus class="w-4 h-4" />
<span>{props.isLoading ? "Opening..." : "Browse Folders"}</span> <span>{props.isLoading ? "Opening..." : "Browse Folders"}</span>
</div> </div>
<kbd class="kbd"> <kbd class="kbd ml-2">
Cmd+Enter Cmd+Enter
</kbd> </kbd>
</button> </button>
<button
onClick={handleBrowse}
disabled={props.isLoading}
class="button-secondary w-full flex items-center justify-center gap-2 text-sm disabled:cursor-not-allowed"
>
<FolderPlus class="w-4 h-4" />
<span>Create New Session</span>
</button>
</div> </div>
{/* Advanced settings section */} {/* Advanced settings section */}
<div class="panel-section"> <div class="panel-section w-full">
<button <button
onClick={() => setShowAdvanced(!showAdvanced())} onClick={() => setShowAdvanced(!showAdvanced())}
class="panel-section-header" class="panel-section-header w-full"
> >
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<Settings class="w-4 h-4 icon-muted" /> <Settings class="w-4 h-4 icon-muted" />

View File

@@ -1374,7 +1374,7 @@
} }
.panel-section-header { .panel-section-header {
@apply px-4 py-3 flex items-center justify-between transition-colors cursor-pointer; @apply w-full px-4 py-3 flex items-center justify-between transition-colors cursor-pointer;
background-color: var(--surface-secondary); background-color: var(--surface-secondary);
} }