Skip to content

Commit

Permalink
style: fix BackTop not hidden completely (#25132)
Browse files Browse the repository at this point in the history
* fix: hidden BackTop still effect layout, such as cursor

* Revert "fix: hidden BackTop still effect layout, such as cursor"

This reverts commit 9000e15.

* perf: use :empty CSS pseudo-class
  • Loading branch information
jesse3mh9a committed Jun 20, 2020
1 parent eadbd62 commit 8b1da1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/back-top/style/index.less
Expand Up @@ -14,6 +14,10 @@
height: 40px;
cursor: pointer;

&:empty {
display: none;
}

&-rtl {
right: auto;
left: 100px;
Expand Down

0 comments on commit 8b1da1a

Please sign in to comment.