Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/layout/ExplorerSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1432,12 +1432,12 @@ export const ExplorerSidebar = ({ sidebarWidth, startResize, onCollapse, sidebar
value={tableFilter}
onChange={(e) => setTableFilter(e.target.value)}
placeholder={t("sidebar.filterTables")}
className="w-full bg-surface-secondary text-xs text-secondary placeholder:text-muted rounded pl-6 pr-6 py-1 border border-default focus:outline-none focus:border-blue-500/50"
className="w-full bg-surface-secondary text-xs text-secondary placeholder:text-muted rounded pl-6 pr-10 py-1 border border-default focus:outline-none focus:border-blue-500/50"
/>
{tableFilter && (
<button
onClick={() => setTableFilter("")}
className="absolute right-1.5 text-muted hover:text-primary"
className="absolute right-3 top-1/2 -translate-y-1/2 text-muted hover:text-primary p-0.5 rounded hover:bg-surface-secondary"
>
<X size={11} />
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/sidebar/SidebarDatabaseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ export const SidebarDatabaseItem = ({
value={tableFilter}
onChange={(e) => setTableFilter(e.target.value)}
placeholder={t("sidebar.filterTables")}
className="w-full bg-surface-secondary text-xs text-secondary placeholder:text-muted rounded pl-6 pr-6 py-1 border border-default focus:outline-none focus:border-blue-500/50"
className="w-full bg-surface-secondary text-xs text-secondary placeholder:text-muted rounded pl-6 pr-10 py-1 border border-default focus:outline-none focus:border-blue-500/50"
onClick={(e) => e.stopPropagation()}
/>
{tableFilter && (
<button
onClick={(e) => { e.stopPropagation(); setTableFilter(""); }}
className="absolute right-1.5 text-muted hover:text-primary"
className="absolute right-3 top-1/2 -translate-y-1/2 text-muted hover:text-primary p-0.5 rounded hover:bg-surface-secondary"
>
<X size={11} />
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/sidebar/SidebarSchemaItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ export const SidebarSchemaItem = ({
value={tableFilter}
onChange={(e) => setTableFilter(e.target.value)}
placeholder={t("sidebar.filterTables")}
className="w-full bg-surface-secondary text-xs text-secondary placeholder:text-muted rounded pl-6 pr-6 py-1 border border-default focus:outline-none focus:border-blue-500/50"
className="w-full bg-surface-secondary text-xs text-secondary placeholder:text-muted rounded pl-6 pr-10 py-1 border border-default focus:outline-none focus:border-blue-500/50"
onClick={(e) => e.stopPropagation()}
/>
{tableFilter && (
<button
onClick={(e) => { e.stopPropagation(); setTableFilter(""); }}
className="absolute right-1.5 text-muted hover:text-primary"
className="absolute right-3 top-1/2 -translate-y-1/2 text-muted hover:text-primary p-0.5 rounded hover:bg-surface-secondary"
>
<X size={11} />
</button>
Expand Down