Skip to content

Commit

Permalink
add height limit
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Mar 27, 2024
1 parent bb15347 commit 905f96b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export function DatabaseTableTree({
...props
}: TreeProps): JSX.Element {
return (
<ul className={`bg-bg-light ${depth == 1 ? 'p-4' : ''} rounded-lg ${className}`} {...props}>
<ul
className={`bg-bg-light ${depth == 1 ? 'p-4 overflow-y-scroll h-full' : ''} rounded-lg ${className}`}
{...props}
>
{items.map((item, index) => {
if ('items' in item) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const DataWarehouseTables = (): JSX.Element => {
return (
<>
<div className="grid md:grid-cols-3">
<div className="sm:col-span-3 md:col-span-1">
<div className="sm:col-span-3 md:col-span-1 max-h-160">
<DatabaseTableTree onSelectRow={selectRow} items={treeItems()} selectedRow={selectedRow} />
</div>
{selectedRow ? (
Expand Down

0 comments on commit 905f96b

Please sign in to comment.