diff --git a/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss b/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss index 54e87fa458..9efc053245 100644 --- a/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss +++ b/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss @@ -18,7 +18,7 @@ display: inline-flex; align-items: center; gap: 12px; - padding: 10px 12px; + padding: 10px 10px; border-radius: 50px; border: 1px solid var(--bg-slate-400); background: rgba(22, 24, 29, 0.6); @@ -33,6 +33,7 @@ border: 1px solid var(--bg-slate-400); background: var(--bg-slate-500); cursor: pointer; + box-shadow: none; } .hidden { diff --git a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx index e882dd790e..8edd0444bf 100644 --- a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx +++ b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx @@ -45,7 +45,6 @@ import { PanelBottomClose, Plus, X, - XCircle, } from 'lucide-react'; import { CSSProperties, @@ -515,7 +514,11 @@ function ExplorerOptions({ return (
- {isQueryUpdated && !isExplorerOptionHidden && ( + { + // if a viewName is selected and the explorer options are not hidden then + // always show the clear option + } + {!isExplorerOptionHidden && viewName && (
} /> - - -
)} {!isExplorerOptionHidden && ( @@ -564,10 +574,7 @@ function ExplorerOptions({ }} dropdownStyle={dropdownStyle} className="views-dropdown" - allowClear={{ - clearIcon: , - }} - onClear={handleClearSelect} + allowClear={false} ref={ref} > {viewsData?.data?.data?.map((view) => { @@ -662,8 +669,8 @@ function ExplorerOptions({
)} - - Save this view} @@ -705,7 +711,6 @@ function ExplorerOptions({ /> - {isExplorerOptionHidden && ( <> - {isQueryUpdated && ( + {viewName && (