Skip to content

Commit f923be9

Browse files
committed
fix: 修复宽度问题
1 parent ea94cc3 commit f923be9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/packages/popover/popover.scss

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@
103103
border-bottom: none;
104104
}
105105

106-
// &:hover:not(:only-child) {
107-
// cursor: pointer;
108-
// color: $popover-hover-text-color;
109-
// background-color: $popover-hover-background-color;
110-
// }
111-
112106
&:hover:nth-of-type(2) {
113107
border-radius: 8px 8px 0px 0px;
114108
}
@@ -132,9 +126,10 @@
132126
}
133127

134128
&-name {
135-
width: 100%;
129+
width: calc(100% - 34px);
136130
word-break: keep-all;
137131
margin: 0 6px 0 4px;
132+
flex: 1;
138133
}
139134

140135
&-action-icon {
@@ -174,7 +169,6 @@
174169

175170
&-top-start {
176171
left: 0;
177-
178172
.nut-popover-arrow-top-start {
179173
left: 16px;
180174
transform: translateX(0%);
@@ -190,7 +184,6 @@
190184

191185
&-bottom-end {
192186
right: 0;
193-
194187
.nut-popover-arrow-bottom-end {
195188
right: 16px;
196189
transform: translateX(0%);
@@ -199,7 +192,6 @@
199192

200193
&-bottom-start {
201194
left: 0;
202-
203195
.nut-popover-arrow-bottom-start {
204196
left: 16px;
205197
transform: translateX(0%);

0 commit comments

Comments
 (0)