Skip to content

Commit

Permalink
make tabs scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Dec 12, 2024
1 parent 95713b3 commit 038d4d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/scenes/data-warehouse/editor/QueryTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface QueryTabsProps {

export function QueryTabs({ models, onClear, onClick, onAdd, activeModelUri }: QueryTabsProps): JSX.Element {
return (
<div className="flex flex-row overflow-scroll hide-scrollbar h-10">
<div className="flex flex-row w-full overflow-scroll hide-scrollbar h-10">
{models.map((model: QueryTab) => (
<QueryTabComponent
key={model.uri.path}
Expand Down
18 changes: 10 additions & 8 deletions frontend/src/scenes/data-warehouse/editor/QueryWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ export function QueryWindow(): JSX.Element {
const { selectTab, deleteTab, createTab, setQueryInput, runQuery, setError, setIsValidView } = useActions(logic)

return (
<div className="flex flex-1 flex-col h-full">
<QueryTabs
models={allTabs}
onClick={selectTab}
onClear={deleteTab}
onAdd={createTab}
activeModelUri={activeModelUri}
/>
<div className="flex flex-1 flex-col h-full overflow-hidden">
<div className="overflow-x-auto">
<QueryTabs
models={allTabs}
onClick={selectTab}
onClear={deleteTab}
onAdd={createTab}
activeModelUri={activeModelUri}
/>
</div>
{editingView && (
<div className="h-7 bg-warning-highlight p-1">
<span> Editing view "{editingView.name}"</span>
Expand Down

0 comments on commit 038d4d4

Please sign in to comment.