Skip to content

Commit

Permalink
Merge pull request #1061 from nataliauvarova/parallel_corpora
Browse files Browse the repository at this point in the history
fix warning pagination and styles pagination
  • Loading branch information
nataliauvarova authored Nov 13, 2023
2 parents 924e002 + f525600 commit d4bb1e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
8 changes: 3 additions & 5 deletions src/components/CorporaView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import smoothScroll from "utils/smoothscroll";
import TableBody from "./TableBody";
import TableHeader from "./TableHeader";

import "./styles.scss";

const ROWS_PER_PAGE = 20;

const ModalContentWrapper = styled("div")`
Expand Down Expand Up @@ -778,8 +776,7 @@ class P extends React.Component {

const pageEntries =
entries.length > _ROWS_PER_PAGE ? take(drop(entries, _ROWS_PER_PAGE * (page - 1)), _ROWS_PER_PAGE) : entries;



/*console.log('entries=====');
console.log(entries);*/

Expand Down Expand Up @@ -1047,6 +1044,7 @@ class P extends React.Component {
}
</div>

{!!_ROWS_PER_PAGE &&
<Pagination
urlBased
activePage={page}
Expand All @@ -1062,7 +1060,7 @@ class P extends React.Component {
}
}}
className="lingvo-pagination-block_perspective"
/>
/>}

</div>
);
Expand Down
11 changes: 0 additions & 11 deletions src/components/CorporaView/styles.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/Perspective/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ const Perspective = ({
});

return (
<div className="background-content lingvo-scrolling-content">
<div className={parallelCorpora && "background-content lingvo-scrolling-content lingvo-scrolling-content_corpora" || "background-content lingvo-scrolling-content"}>
<Container fluid className="perspective inverted lingvo-scrolling-content__container">
{isDeleted && (
<div
Expand Down
12 changes: 12 additions & 0 deletions src/pages/Perspective/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@
}
}

/* parallel corpora */
&_corpora {
padding-bottom: 20px !important;

& .lingvo-scrolling-tab {
@media only screen and (max-device-width: 1000px), only screen and (max-width: 1000px) {
margin-bottom: 0 !important;
}
}
}
/* /parallel corpora */

& .pagination {
left: 20px;
z-index: 100;
Expand Down

0 comments on commit d4bb1e2

Please sign in to comment.