[improvement] Dialog: centered in screen (#3905)

This commit is contained in:
neverland
2019-07-19 17:22:28 +08:00
committed by GitHub
parent 32fca2756d
commit 7d9c8a810f
3 changed files with 5 additions and 6 deletions
+1 -4
View File
@@ -33,10 +33,7 @@
</van-button>
</demo-block>
<demo-block
v-if="!$attrs.weapp"
:title="$t('componentCall')"
>
<demo-block :title="$t('componentCall')">
<van-button
type="primary"
@click="show = true"
+2 -1
View File
@@ -2,7 +2,7 @@
.van-dialog {
position: fixed;
top: 50%;
top: 45%;
left: 50%;
width: @dialog-width;
overflow: hidden;
@@ -16,6 +16,7 @@
&__header {
padding-top: @dialog-header-padding-top;
font-weight: @dialog-header-font-weight;
line-height: @dialog-header-line-height;
text-align: center;
&--isolated {