Skip to content

Commit 213b87e

Browse files
committed
refactor: 不能随便全局加 box-sizing
1 parent 82f8419 commit 213b87e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/App.vue

+7-8
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ onHide(() => {
1414

1515
<style lang="scss">
1616
/* stylelint-disable selector-type-no-unknown */
17-
view,
18-
navigator,
19-
input,
20-
scroll-view {
21-
box-sizing: border-box;
22-
}
23-
2417
button::after {
2518
border: none;
2619
}
@@ -38,7 +31,13 @@ image {
3831
vertical-align: middle;
3932
}
4033
41-
// 单行省略使用 unocss: text-ellipsis
34+
// 单行省略,优先使用 unocss: text-ellipsis
35+
.ellipsis {
36+
overflow: hidden;
37+
text-overflow: ellipsis;
38+
white-space: nowrap;
39+
}
40+
4241
// 两行省略
4342
.ellipsis-2 {
4443
display: -webkit-box;

0 commit comments

Comments
 (0)