Skip to content

Commit

Permalink
ADG-7473 fix dashboard tables scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Oct 12, 2023
1 parent d3fabdd commit 5e4f35c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Dashboard/BlockedDomains.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const BlockedDomains = ({
]}
showPagination={false}
noDataText={t('no_domains_found')}
minRows={6}
minRows={5}
defaultPageSize={100}
className="-highlight card-table-overflow--limited stats__table"
/>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Dashboard/Clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const Clients = ({
]}
showPagination={false}
noDataText={t('no_clients_found')}
minRows={6}
minRows={5}
defaultPageSize={100}
className="-highlight card-table-overflow--limited clients__table"
getTrProps={(_state, rowInfo) => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Dashboard/QueriedDomains.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const QueriedDomains = ({
]}
showPagination={false}
noDataText={t('no_domains_found')}
minRows={6}
minRows={5}
defaultPageSize={100}
className="-highlight card-table-overflow--limited stats__table"
/>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Dashboard/UpstreamAvgTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const UpstreamAvgTime = ({
]}
showPagination={false}
noDataText={t('no_upstreams_data_found')}
minRows={6}
minRows={5}
defaultPageSize={100}
className="-highlight card-table-overflow--limited stats__table"
/>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Dashboard/UpstreamResponses.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const UpstreamResponses = ({
]}
showPagination={false}
noDataText={t('no_upstreams_data_found')}
minRows={6}
minRows={5}
defaultPageSize={100}
className="-highlight card-table-overflow--limited stats__table"
/>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Settings/Dhcp/Leases.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Leases extends Component {
showPageSizeOptions={false}
showPagination={leases.length > LEASES_TABLE_DEFAULT_PAGE_SIZE}
noDataText={t('dhcp_leases_not_found')}
minRows={6}
minRows={5}
className="-striped -highlight card-table-overflow"
/>
);
Expand Down
9 changes: 7 additions & 2 deletions client/src/components/ui/Card.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
align-items: center;
justify-content: space-between;
padding: 0.6rem 1.5rem;
flex-shrink: 0;
}

.card-subtitle {
Expand All @@ -20,7 +21,11 @@
}

.dashboard .card-table-overflow--limited {
max-height: 18rem;
max-height: 290px;
}

.dashboard .ReactTable .rt-tr-group {
min-height: 52px;
}

.card-actions {
Expand Down Expand Up @@ -125,7 +130,7 @@

@media (min-width: 992px) {
.dashboard .card:not(.card--full) {
height: 22rem;
height: 362px;
}
}

Expand Down

0 comments on commit 5e4f35c

Please sign in to comment.