Skip to content

Commit

Permalink
Styles changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemBaskal committed Jun 16, 2020
1 parent 9323ce3 commit ecb322f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions client/src/__locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
"domain_or_client": "Domain or client",
"type_table_header": "Type",
"response_table_header": "Response",
"response_code": "Response code",
"client_table_header": "Client",
"empty_response_status": "Empty",
"show_all_filter_type": "Show all",
Expand Down
5 changes: 4 additions & 1 deletion client/src/components/Logs/Cells/getResponseCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,29 @@ const getResponseCell = (row, filtering, t, isDetailed) => {
encryption_status: boldStatusLabel,
install_settings_dns: upstream,
elapsed: formattedElapsedMs,
response_code: status,
response_table_header: renderResponses(response),
},
[FILTERED_STATUS.FILTERED_BLOCKED_SERVICE]: {
domain,
encryption_status: boldStatusLabel,
filter,
rule_label: rule,
response_table_header: status,
response_code: status,
},
[FILTERED_STATUS.FILTERED_SAFE_SEARCH]: {
domain,
encryption_status: boldStatusLabel,
install_settings_dns: upstream,
elapsed: formattedElapsedMs,
response_code: status,
},
[FILTERED_STATUS.FILTERED_BLACK_LIST]: {
domain,
encryption_status: boldStatusLabel,
install_settings_dns: upstream,
elapsed: formattedElapsedMs,
response_code: status,
},
};

Expand Down
14 changes: 9 additions & 5 deletions client/src/components/Logs/Logs.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,7 @@
padding: 0 1.5rem;
}

.logs__table .rt-tr-group.white + .rt-tr-group.white .rt-tr:before,
.logs__table .rt-tr-group.green + .rt-tr-group.green .rt-tr:before,
.logs__table .rt-tr-group.blue + .rt-tr-group.blue .rt-tr:before,
.logs__table .rt-tr-group.yellow + .rt-tr-group.yellow .rt-tr:before,
.logs__table .rt-tr-group.red + .rt-tr-group.red .rt-tr:before {
.logs__table .rt-tr-group:not(:first-child) .rt-tr:before {
content: "";
position: absolute;
left: 1.5rem;
Expand Down Expand Up @@ -548,3 +544,11 @@
margin-top: 1.5rem;
}
}

.loader__container {
transform: translateY(-20rem);
}

.loader__text {
transform: translateY(3rem);
}
8 changes: 6 additions & 2 deletions client/src/components/Logs/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
formatTime,

} from '../../helpers/helpers';

import Loading from '../ui/Loading';

const Table = (props) => {
const {
Expand Down Expand Up @@ -227,7 +227,11 @@ const Table = (props) => {
onPageChange={changePage}
className={tableClass}
defaultPageSize={TABLE_DEFAULT_PAGE_SIZE}
loadingText={t('loading_table_status')}
loadingText={
<div className="loader__container">
<Loading />
<h1 className="loader__text">{t('loading_table_status')}</h1>
</div>}
rowsText={t('rows_table_footer_text')}
noDataText={!processingGetLogs
&& <label className="logs__text logs__text--bold">{t('nothing_found')}</label>}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ui/Loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import './Loading.css';

const Loading = () => (
<div className="loading"></div>
<div className="loading" />
);

export default Loading;

0 comments on commit ecb322f

Please sign in to comment.