mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(component): [badge] fix auto width (#11003)
* fix: badge auto width * fix(components): [badge] remove inset-inline-end
This commit is contained in:
parent
dd86f253e9
commit
d6b14cf303
@ -41,6 +41,7 @@ import { CaretBottom } from '@element-plus/icons-vue'
|
||||
margin-top: 10px;
|
||||
margin-right: 40px;
|
||||
}
|
||||
|
||||
.el-dropdown {
|
||||
margin-top: 1.1rem;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
width: fit-content;
|
||||
|
||||
@include e(content) {
|
||||
background-color: getCssVar('badge', 'bg-color');
|
||||
@ -32,6 +33,7 @@
|
||||
top: 0;
|
||||
right: calc(1px + #{getCssVar('badge', 'size')} / 2);
|
||||
transform: translateY(-50%) translateX(100%);
|
||||
z-index: getCssVar('index', 'normal');
|
||||
|
||||
@include when(dot) {
|
||||
right: 5px;
|
||||
|
Loading…
Reference in New Issue
Block a user