refactor: 不能随便全局加 box-sizing

This commit is contained in:
菲鸽
2024-03-10 10:30:32 +08:00
parent 15baac5940
commit 6411fb60f0

View File

@@ -14,13 +14,6 @@ onHide(() => {
<style lang="scss">
/* stylelint-disable selector-type-no-unknown */
view,
navigator,
input,
scroll-view {
box-sizing: border-box;
}
button::after {
border: none;
}
@@ -38,7 +31,13 @@ image {
vertical-align: middle;
}
// 单行省略使用 unocss: text-ellipsis
// 单行省略,优先使用 unocss: text-ellipsis
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
// 两行省略
.ellipsis-2 {
display: -webkit-box;