ソースを参照

Update disstances

Nikatlas 5 年 前
コミット
d99d176e95
4 ファイル変更15 行追加7 行削除
  1. 8 0
      Components/ContainerEditor.js
  2. 1 1
      Systems/SideBar.js
  3. 1 1
      yalc.lock
  4. 5 5
      yarn.lock

+ 8 - 0
Components/ContainerEditor.js

@@ -56,6 +56,14 @@ export default class ContainerEditor extends React.Component {
 					{this.createHandler(structure, nodeProps, 'width', (val) => this.update('width', val), 'W')}
 					{this.createHandler(structure, nodeProps, 'height', (val) => this.update('height', val), 'H')}
 				</View>
+				<View style={styles.row}>
+					{this.createHandler(structure, nodeProps, 'paddingTop', (val) => this.update('paddingTop', val), 'Top')}
+					{this.createHandler(structure, nodeProps, 'paddingBottom', (val) => this.update('paddingBottom', val), 'Bottom')}
+				</View>
+				<View style={styles.row}>
+					{this.createHandler(structure, nodeProps, 'marginLeft', (val) => this.update('marginLeft', val), 'Left')}
+					{this.createHandler(structure, nodeProps, 'marginRight', (val) => this.update('marginRight', val), 'Right')}
+				</View>
 			</View>
 		);
 	}

+ 1 - 1
Systems/SideBar.js

@@ -174,7 +174,7 @@ export default class SideBar extends BaseSystem {
   					<Text style={{cursor: 'pointer'}} onClick={() => this.toggleAll()}>Show All</Text>
   				</View>
   				]
-  				: <Text>Click on elements</Text>}
+  				: <Text style={{padding: 24}}>Click on elements</Text>}
 
   				{this.showAllData ?
   				<View>

+ 1 - 1
yalc.lock

@@ -2,7 +2,7 @@
   "version": "v1",
   "packages": {
     "trapilib": {
-      "signature": "f68ef63fd449a22519a537d99b53c20c",
+      "signature": "f0322927a2690a1afc76ff19df9b76b8",
       "file": true,
       "replaced": "http://git.onarbooks.com/Klapi/TrapiLib.git"
     }

+ 5 - 5
yarn.lock

@@ -1994,9 +1994,9 @@ [email protected]:
   integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
 
 electron-to-chromium@^1.3.247:
-  version "1.3.253"
-  resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.253.tgz#bc3b2c94c2a109c08d37b04f526dc05fdabcbb5b"
-  integrity sha512-LAwFRWViiiCSxQ2Lj3mnyEP8atkpAoHSPUnkFoy4mNabbnPHxtfseWvPCGGhewjHQI+ky/V4LdlTyyI0d3YPXA==
+  version "1.3.254"
+  resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.254.tgz#af9795b9b2af0729997331a033ddc767af758224"
+  integrity sha512-7I5/OkgR6JKy6RFLJeru0kc0RMmmMu1UnkHBKInFKRrg1/4EQKIqOaUqITSww/SZ1LqWwp1qc/LLoIGy449eYw==
 
 emoji-regex@^7.0.1:
   version "7.0.3"
@@ -5775,7 +5775,7 @@ [email protected]:
   integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==
 
 "trapilib@file:.yalc/trapilib":
-  version "1.1.1-f68ef63f"
+  version "1.1.1-333c7015"
   dependencies:
     expo "^34.0.0-experiment.8"
     prop-types "^15.7.2"
@@ -5787,7 +5787,7 @@ [email protected]:
 
 "trapilib@http://git.onarbooks.com/Klapi/TrapiLib.git":
   version "1.1.1"
-  resolved "http://git.onarbooks.com/Klapi/TrapiLib.git#d62ffb121dd6a078f828fb4a6070cf3208e99da5"
+  resolved "http://git.onarbooks.com/Klapi/TrapiLib.git#deee7d4d9ea87c9233cf97056906d0dbf1294d5a"
   dependencies:
     expo "^34.0.0-experiment.8"
     prop-types "^15.7.2"