Skip to content

Commit

Permalink
feature: support auto width for swipe actions, close ant-design#1595
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud authored and lixiaoyang1992 committed Apr 26, 2018
1 parent 992c2a1 commit 2add751
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions components/swipe-action/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
&-content {
position: relative;
z-index: 10;
background-color: #fff;
}

&-cover {
position: absolute;
z-index: 11;
background: transparent;
height: 100%;
width: 100%;
top: 0;
display: none;
}
Expand All @@ -30,20 +32,18 @@
position: absolute;
top: 0;
bottom: 0;
right: 0;
z-index: 9;
display: flex;
overflow: hidden;
white-space: nowrap;
transition: all 250ms;

&-left {
left: 0;
width: 0;
}

&-right {
right: 0;
width: 0;
}
}

Expand All @@ -55,9 +55,9 @@
position: relative;
overflow: hidden;
z-index: 99;
}

&-text {
padding: 0 @h-spacing-sm;
}
&-text {
padding: 0 @h-spacing-md;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"rc-notification": "~2.0.0",
"rc-slider": "~8.2.0",
"rc-steps": "~2.5.1",
"rc-swipeout": "~1.3.0",
"rc-swipeout": "~1.4.0",
"rc-table": "~5.4.0",
"rc-tabs": "~9.1.0",
"rc-tooltip": "~3.4.3",
Expand Down

0 comments on commit 2add751

Please sign in to comment.