瀏覽代碼

Container: forbid shrinking for Aside, Header and Footer (#9812)

杨奕 7 年之前
父節點
當前提交
f677292d86
共有 4 個文件被更改,包括 4 次插入1 次删除
  1. 1 1
      package.json
  2. 1 0
      packages/theme-chalk/src/aside.scss
  3. 1 0
      packages/theme-chalk/src/footer.scss
  4. 1 0
      packages/theme-chalk/src/header.scss

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
   ],
   "typings": "types/index.d.ts",
   "scripts": {
-    "bootstrap": "yarn",
+    "bootstrap": "yarn || npm i",
     "build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/i18n.js & node build/bin/version.js",
     "build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk",
     "build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",

+ 1 - 0
packages/theme-chalk/src/aside.scss

@@ -3,4 +3,5 @@
 @include b(aside) {
   overflow: auto;
   box-sizing: border-box;
+  flex-shrink: 0;
 }

+ 1 - 0
packages/theme-chalk/src/footer.scss

@@ -4,4 +4,5 @@
 @include b(footer) {
   padding: $--footer-padding;
   box-sizing: border-box;
+  flex-shrink: 0;
 }

+ 1 - 0
packages/theme-chalk/src/header.scss

@@ -4,4 +4,5 @@
 @include b(header) {
   padding: $--header-padding;
   box-sizing: border-box;
+  flex-shrink: 0;
 }