mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
fix(button): whitespace nowrap
This commit is contained in:
parent
01cae6db78
commit
baf4b74eb1
@ -1,5 +1,3 @@
|
||||
import getScrollParent from '../utils/getScrollParent'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
isActive: {
|
||||
|
@ -32,6 +32,7 @@
|
||||
}
|
||||
.n-button__content {
|
||||
line-height: $tiny-height;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.n-button__icon {
|
||||
height: 18px;
|
||||
|
@ -76,7 +76,6 @@ $popover-distance: $popover-arrow-width - 1 + 14;
|
||||
.n-popover__arrow {
|
||||
border-width: $popover-arrow-width;
|
||||
pointer-events: none;
|
||||
border-width: $popover-arrow-width;
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 0;
|
||||
@ -201,16 +200,14 @@ $popover-distance: $popover-arrow-width - 1 + 14;
|
||||
opacity: 1;
|
||||
}
|
||||
&.n-popover-fade-enter-active {
|
||||
transition: opacity .1s $fast-in-cubic-bezier,
|
||||
transform .1s $fast-in-cubic-bezier;
|
||||
transition: opacity .1s $fast-in-cubic-bezier, transform .1s $fast-in-cubic-bezier;
|
||||
}
|
||||
&.n-popover-fade-enter, &.n-popover-fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
|
||||
opacity: 0;
|
||||
transform: scale(.9);
|
||||
}
|
||||
&.n-popover-fade-leave-to {
|
||||
transition: opacity .1s $slow-out-cubic-bezier,
|
||||
transform .1s $slow-out-cubic-bezier;
|
||||
transition: opacity .1s $slow-out-cubic-bezier, transform .1s $slow-out-cubic-bezier;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user