Skip to content

Commit

Permalink
Merge pull request #522 from lilangkit/hotfix/box-sizing
Browse files Browse the repository at this point in the history
feat: 全局默认box-sizing: border-box;降低元素布局难度。
  • Loading branch information
kailong321200875 authored Aug 25, 2024
2 parents 2ae5a15 + 2827f5b commit 54622c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TagsView/src/TagsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ watch(
&__item {
position: relative;
top: 2px;
top: 3px;
height: calc(~'100% - 6px');
padding-right: 25px;
margin-left: 4px;
Expand Down
8 changes: 8 additions & 0 deletions src/styles/var.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@
.dark {
--app-content-bg-color: var(--el-bg-color);
}

*,
:after,
:before {
margin: 0;
padding: 0;
box-sizing: border-box;
}

0 comments on commit 54622c5

Please sign in to comment.