Skip to content

Commit

Permalink
fix topology quick search modal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram-raj committed Jan 22, 2021
1 parent aed8321 commit 058ba6e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
.odc-quick-search-content {
height: calc(100% - 60px);
&__list {
width: 40%;
height: calc(100%);
overflow-y: auto;
}
&__details {
background: var(--pf-global--palette--white);
width: 60%;
overflow-y: auto;
height: 100%;
padding-right: var(--pf-global--spacer--md);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
var(--pf-global--spacer--md);
overflow-y: auto;
overflow-wrap: break-word;
height: 400px;
scrollbar-width: 12px;
scrollbar-color: var(--pf-global--BackgroundColor--light-300) var(--pf-global--palette--white);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.odc-quick-search-modal-body {
min-height: 60px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
removeQueryArgument,
setQueryArgument,
} from '@console/internal/components/utils';
import './QuickSearchModalBody.scss';

interface QuickSearchModalBodyProps {
allCatalogItemsLoaded: boolean;
Expand Down Expand Up @@ -139,7 +140,11 @@ const QuickSearchModalBody: React.FC<QuickSearchModalBodyProps> = ({
}, [closeModal, onCancel, onEnter, selectNext, selectPrevious]);

return (
<div ref={ref}>
<div
ref={ref}
className="odc-quick-search-modal-body"
style={{ height: catalogItems?.length > 0 ? '466px' : '60px' }}
>
<QuickSearchBar
searchTerm={searchTerm}
onSearch={onSearch}
Expand Down

0 comments on commit 058ba6e

Please sign in to comment.