Explorar el Código

Dialog: remove unnecessary inline style

Leopoldthecoder hace 8 años
padre
commit
a76547eaa3
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 1 1
      packages/dialog/src/component.vue
  2. 2 0
      packages/theme-default/src/dialog.css

+ 1 - 1
packages/dialog/src/component.vue

@@ -110,7 +110,7 @@
         return `el-dialog--${ this.size }`;
       },
       style() {
-        return this.size === 'full' ? {} : { 'margin-bottom': '50px', 'top': this.top };
+        return this.size === 'full' ? {} : { 'top': this.top };
       }
     },
 

+ 2 - 0
packages/theme-default/src/dialog.css

@@ -12,6 +12,7 @@
     border-radius: var(--border-radius-small);
     box-shadow: var(--dialog-box-shadow);
     box-sizing: border-box;
+    margin-bottom: 50px;
 
     @modifier tiny {
       width: var(--dialog-tiny-width);
@@ -28,6 +29,7 @@
     @modifier full {
       width: 100%;
       top: 0;
+      margin-bottom: 0;
       height: 100%;
       overflow: auto;
     }