Skip to content

Commit cab2f96

Browse files
authored
Merge pull request #52 from CBIIT/develop
Merge with Develop
2 parents e9806a1 + b0eb45d commit cab2f96

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

src/components/Pagination/Pagination.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@
7171
}
7272

7373
.dropdown-item.active {
74-
border: 1px solid #7CACCF;
74+
/* border: 1px solid #7CACCF; */
75+
border-top: 1px solid #7CACCF;
76+
border-bottom: 1px solid #7CACCF;
7577
background-color: #FFFFFF;
7678
}
7779

78-
.dropdown-menu {
80+
.dropdown-menus {
7981
border: 1px solid #7CACCF;
8082
}

src/components/Pagination/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,22 @@ const ResultsPerPage = styled.div`
2525
display: inline-block;
2626
margin: -2px 0 0 -3px;
2727
color: #004187;
28-
// background-color: white;
29-
// border: none;
28+
background-color: white;
29+
border: none;
3030
}
3131
3232
ul{
3333
min-width: 30px;
3434
padding: 0 0 0 0;
35+
border-radius: 0px;
3536
border: 1px solid #7CACCF;
3637
background-color: #DFEEF9;
3738
// background-color: red;
3839
}
3940
4041
div.dropdown li a{
4142
min-width: 30px;
42-
padding: 1px 8px 1px 8px;
43+
padding: 0px 8px 0px 8px;
4344
color: #004187;
4445
text-align: center;
4546
}
@@ -69,7 +70,9 @@ const Pagination = ({
6970
pageClick(data.selected + 1);
7071
};
7172
const handleSizeClick = (size) => {
72-
sizeClick(size);
73+
if (pageInfo.pageSize !== size) {
74+
sizeClick(size);
75+
}
7376
};
7477

7578
return (

src/pages/participatingResourcesPage/PageInfo/PageInfo.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ const replaceQueryStrPageSize = (query, pageSize) => {
4545
if (query.get("data_content_type")) {
4646
str += `&data_content_type=${query.get("data_content_type")}`;
4747
}
48-
if (query.get("page")) {
49-
str += `&page=${query.get("page")}`;
50-
}
48+
str += `&page=1`;
5149
str += `&pageSize=${pageSize}`;
5250
return str.substring(1);
5351
};

src/pages/searchCatalogPage/PageInfo/PageInfo.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ const replaceQueryStrPageSize = (query, pageSize) => {
4545
if (query.get("data_content_type")) {
4646
str += `&data_content_type=${query.get("data_content_type")}`;
4747
}
48-
if (query.get("page")) {
49-
str += `&page=${query.get("page")}`;
50-
}
48+
str += `&page=1`;
5149
str += `&pageSize=${pageSize}`;
5250
if (query.get("sortBy")) {
5351
str += `&sortBy=${query.get("sortBy")}`;

0 commit comments

Comments
 (0)