Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DatabasesList = () => {
defaultPagination={getDefaultPagination()}
onPaginationChange={handlePaginationChange}
defaultSorting={DEFAULT_SORTING}
maxHeight="60rem" // this enables vertical scroll
style={{ maxHeight: '100%' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pass maxHeight to Table to keep scrolling enabled

When the Home list is taller than the available viewport, this no longer uses the Redis UI Table maxHeight prop that creates/sizes the table's internal scroll area; it only applies a plain CSS max-height to the outer component. Since this commit also changes .homePage to overflow: hidden, rows beyond the available height can be clipped instead of scrollable. Keep the height constraint on the table API, e.g. maxHeight="100%", rather than moving it into style.

Useful? React with 👍 / 👎.

/>
<BulkItemsActions items={selectedInstances} onClose={resetRowSelection} />
</>
Expand Down
9 changes: 7 additions & 2 deletions redisinsight/ui/src/pages/home/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
padding: 1px 16px 16px !important;

:global {
.RI-page-body {
min-height: 0;
}

.homePage {
height: calc(100% - 60px);
overflow-y: auto;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
/* Inset on all sides so table card chrome is not clipped by this scrollport */
padding: 1px;
}
Expand Down