Browse Source

style fixes

Nicolas Cannasse 5 years ago
parent
commit
87b263bd59
4 changed files with 10 additions and 3 deletions
  1. 3 0
      bin/style.css
  2. 4 0
      bin/style.less
  3. 1 1
      hide/view/Prefab.hx
  4. 2 2
      hrt/prefab/l3d/HeightMap.hx

+ 3 - 0
bin/style.css

@@ -224,6 +224,9 @@ input[type=checkbox]:checked:after {
 .hide-scene-layer .jstree-container-ul {
   padding-right: 5px;
 }
+.prefabview .scenetree {
+  max-height: 350px;
+}
 .hide-scenetree {
   flex: 1;
   background-color: #111;

+ 4 - 0
bin/style.less

@@ -238,6 +238,10 @@ input[type=checkbox] {
 
 }
 
+.prefabview .scenetree {
+	max-height : 350px;
+}
+
 .hide-scenetree {
 	flex: 1;
 	background-color : #111;

+ 1 - 1
hide/view/Prefab.hx

@@ -62,7 +62,7 @@ class Prefab extends FileView {
 		currentSign = haxe.crypto.Md5.encode(content);
 
 		element.html('
-			<div class="flex vertical">
+			<div class="flex vertical prefabview">
 				<div class="toolbar"></div>
 				<div class="flex-elt">
 					<div class="heaps-scene">

+ 2 - 2
hrt/prefab/l3d/HeightMap.hx

@@ -319,9 +319,9 @@ class HeightMap extends Object3D {
 		ectx.properties.add(props,this, (_) -> updateInstance(ctx));
 		for( tex in textures ) {
 			var prevTex = tex.path;
-			var e = new hide.Element('<li>
+			var e = new hide.Element('<li style="position:relative">
 				<input type="checkbox" field="enable"/>
-				<input type="texturepath" style="width:170px" field="path"/>
+				<input type="texturepath" style="width:165px" field="path"/>
 				<select field="kind" style="width:70px">
 					<option value="albedo">Albedo
 					<option value="height">Height