Merge: + client: Make default table height 100%
Squashed commit of the following: commit d6b07ae070b5ec826dbe3e226e326f9d52b8c7d1 Author: ArtemBaskal <a.baskal@adguard.com> Date: Wed Apr 29 16:57:22 2020 +0300 Limit dasboard tables height commit 6b42f7a1e3cb82e1b792dd352717a3ffa9566b4b Author: ArtemBaskal <a.baskal@adguard.com> Date: Wed Apr 29 16:44:08 2020 +0300 + client: Make default table height 100%
This commit is contained in:
@@ -58,7 +58,7 @@ const BlockedDomains = ({
|
||||
noDataText={t('no_domains_found')}
|
||||
minRows={6}
|
||||
defaultPageSize={100}
|
||||
className="-highlight card-table-overflow stats__table"
|
||||
className="-highlight card-table-overflow--limited stats__table"
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@@ -119,7 +119,7 @@ const Clients = ({
|
||||
noDataText={t('no_clients_found')}
|
||||
minRows={6}
|
||||
defaultPageSize={100}
|
||||
className="-highlight card-table-overflow clients__table"
|
||||
className="-highlight card-table-overflow--limited clients__table"
|
||||
getTrProps={(_state, rowInfo) => {
|
||||
if (!rowInfo) {
|
||||
return {};
|
||||
|
||||
@@ -59,7 +59,7 @@ const QueriedDomains = ({
|
||||
noDataText={t('no_domains_found')}
|
||||
minRows={6}
|
||||
defaultPageSize={100}
|
||||
className="-highlight card-table-overflow stats__table"
|
||||
className="-highlight card-table-overflow--limited stats__table"
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
}
|
||||
|
||||
.card-table-overflow {
|
||||
overflow-y: auto;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.card-table-overflow--limited {
|
||||
overflow-y: auto;
|
||||
max-height: 280px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user