Skip to content

Commit 24270f4

Browse files
committed
Merge branch 'hotfix/box-sizing' of https://gitee.com/preschooler/platform-admin-ui
2 parents 8cb5931 + ca3e47f commit 24270f4

File tree

5 files changed

+14
-30
lines changed

5 files changed

+14
-30
lines changed

src/App.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,4 @@ body {
5454
.#{$prefix-cls}-grey-mode {
5555
filter: grayscale(100%);
5656
}
57-
58-
.scrollbar__view {
59-
height: 99%!important;
60-
}
6157
</style>

src/components/Icon/src/IconSelect.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ watch(
122122
placement: 'auto'
123123
}"
124124
:visible="visible"
125-
:width="350"
125+
:width="355"
126126
popper-class="pure-popper"
127127
trigger="click"
128128
>
@@ -147,7 +147,7 @@ watch(
147147
>
148148
<ElDivider border-style="dashed" class="tab-divider" />
149149
<ElScrollbar height="220px">
150-
<ul class="ml-2 flex flex-wrap px-2">
150+
<ul class="ml-2 flex flex-wrap">
151151
<li
152152
v-for="(item, key) in pageList"
153153
:key="key"
@@ -171,7 +171,7 @@ watch(
171171
background
172172
class="h-10 flex items-center justify-center"
173173
layout="prev, pager, next"
174-
small
174+
size="small"
175175
@current-change="onCurrentChange"
176176
/>
177177
</ElPopover>

src/layout/Layout.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,5 @@ $prefix-cls: #{$namespace}-layout;
7171
7272
.#{$prefix-cls} {
7373
background-color: var(--app-content-bg-color);
74-
:deep(.#{$elNamespace}-scrollbar__view) {
75-
height: 99% !important;
76-
}
7774
}
7875
</style>

src/layout/components/AppView.vue

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,10 @@ provide('reload', reload)
3636
<template>
3737
<section
3838
:class="[
39-
'p-[var(--app-content-padding)] w-[calc(100%-var(--app-content-padding)-var(--app-content-padding))] bg-[var(--app-content-bg-color)] dark:bg-[var(--el-bg-color)]',
39+
'p-[var(--app-content-padding)] w-full bg-[var(--app-content-bg-color)] dark:bg-[var(--el-bg-color)]',
4040
{
41-
'!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]':
42-
(fixedHeader &&
43-
(layout === 'classic' || layout === 'topLeft' || layout === 'top') &&
44-
footer) ||
45-
(!tagsView && layout === 'top' && footer),
46-
'!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height)-var(--tags-view-height))]':
47-
tagsView && layout === 'top' && footer,
48-
49-
'!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--top-tool-height)-var(--app-footer-height))]':
50-
!fixedHeader && layout === 'classic' && footer,
51-
52-
'!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]':
53-
!fixedHeader && layout === 'topLeft' && footer,
54-
55-
'!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding))]':
56-
fixedHeader && layout === 'cutMenu' && footer,
57-
58-
'!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding)-var(--tags-view-height))]':
59-
!fixedHeader && layout === 'cutMenu' && footer
41+
'!min-h-[calc(100vh-var(--top-tool-height)-var(--tags-view-height)-var(--app-footer-height))] pb-0':
42+
footer
6043
}
6144
]"
6245
>

src/styles/var.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@ body {
6464
-webkit-font-smoothing: antialiased;
6565
-moz-osx-font-smoothing: grayscale;
6666
}
67+
68+
*,
69+
:after,
70+
:before {
71+
margin: 0;
72+
padding: 0;
73+
box-sizing: border-box;
74+
}

0 commit comments

Comments
 (0)