This commit is contained in:
Andrey Savihin 2019-12-24 14:15:57 +03:00
commit 0c95ebf689
2 changed files with 22 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "asc-web-components",
"version": "1.0.261",
"version": "1.0.262",
"description": "Ascensio System SIA component library",
"license": "AGPL-3.0",
"main": "dist/asc-web-components.js",

View File

@ -14,12 +14,22 @@ const StyledPaging = styled.div`
margin-right: 8px;
max-width: 110px;
}
.buttonCustomStyle {
padding: 6px 8px 10px;
}
`;
const StyledOnPage = styled.div`
margin-left: auto;
margin-right: 0px;
.hideDisabled {
div[disabled] {
display: none;
}
}
@media (max-width: 450px) {
display: none;
}
@ -27,6 +37,13 @@ const StyledOnPage = styled.div`
const StyledPage = styled.div`
margin-right: 8px;
.manualWidth {
> div:last-of-type {
width: 120%;
}
}
}
`;
const Paging = props => {
@ -52,6 +69,7 @@ const Paging = props => {
style={style}
>
<Button
className="buttonCustomStyle"
size='medium'
scale={true}
label={previousLabel}
@ -60,6 +78,7 @@ const Paging = props => {
{pageItems &&
<StyledPage>
<ComboBox
className="manualWidth"
directionY={openDirection}
options={pageItems}
onSelect={onSelectPageAction}
@ -69,6 +88,7 @@ const Paging = props => {
</StyledPage>
}
<Button
className="buttonCustomStyle"
size='medium'
scale={true}
label={nextLabel}
@ -77,6 +97,7 @@ const Paging = props => {
{countItems &&
<StyledOnPage>
<ComboBox
className="hideDisabled"
directionY={openDirection}
directionX='right'
options={countItems}