Skip to content

Commit 4ebae58

Browse files
authored
Merge pull request #998 from qtomlinson/qt/fix_scroll
Fix scrolling in ComponentList
2 parents 827356c + fb8b123 commit 4ebae58

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/components/ComponentList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ class ComponentList extends React.Component {
145145
render() {
146146
const { loadMoreRows, noRowsRenderer, list, listLength } = this.props
147147
const { sortOrder, contentSeq } = this.state
148+
const showFilterBar = false
148149
return (
149-
<div className="clearly-table-body flex-grow">
150+
<div className={`clearly-table-body flex-grow ${showFilterBar ? 'show-filter' : ''}`}>
150151
<div className="clearly-header">
151152
<div className="table-header-fcloumn">
152153
<h4>Component</h4>

src/styles/_App.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ main {
240240
box-shadow: 5px 5px 20px -10px lightgrey;
241241
display: flex;
242242
min-height: 200px;
243-
padding-bottom: $height-filters-section;
244243

245244
.fa-spinner {
246245
display: none;

src/styles/_List.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@
373373
height: $height-filters-list;
374374
}
375375

376+
.show-filter.clearly-table-body {
377+
margin-bottom: $height-filters-section;
378+
}
379+
376380
.filter-list,
377381
.list-filter,
378382
.section--filter-bar {

src/styles/style.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,12 @@ a:hover {
433433
/* min-height: 550px; */
434434
/* max-height: 700px; */
435435
overflow: hidden;
436-
height: 60vh;
437436
position: relative;
438437
width: 100%;
439438
will-change: transform; }
440439

441440
.clearly-table-body .form-group.flex-grow-column {
442-
height: 100%;
441+
height: 60vh;
443442
width: 100%; }
444443

445444
.clearly-table .form-group.flex-grow-column .checkbox {

0 commit comments

Comments
 (0)