Просмотр исходного кода

Diplay more than a word on lm dropdown tabs when overflowing

Also typo fixes
Leonardo Jeanteur 1 год назад
Родитель
Сommit
a73a2e30e4
4 измененных файлов с 15 добавлено и 6 удалено
  1. 4 0
      bin/style.css
  2. 5 0
      bin/style.less
  3. 5 5
      hide/comp/SceneEditor.hx
  4. 1 1
      hrt/prefab/ContextShared.hx

+ 4 - 0
bin/style.css

@@ -2528,6 +2528,10 @@ body.hide-subview .lm_close_tab,
 body.hide-subview .lm_controls {
   display: none;
 }
+.lm_header .lm_tabdropdown_list .lm_tab .lm_title {
+  width: unset;
+  max-width: 500px;
+}
 /* JSTree fixes */
 .jstree {
   background: transparent !important;

+ 5 - 0
bin/style.less

@@ -2865,6 +2865,11 @@ body.hide-subview {
 	}
 }
 
+.lm_header .lm_tabdropdown_list .lm_tab .lm_title {
+	width: unset;
+	max-width: 500px;
+}
+
 /* JSTree fixes */
 
 .jstree {

+ 5 - 5
hide/comp/SceneEditor.hx

@@ -2349,16 +2349,16 @@ class SceneEditor {
                         obj3d.z = snap(quantize(newMat.tz, posQuant), snapMoveStep);
                     }
                     else { // Don't snap translation if the primary action wasn't a translation (i.e. Rotation around a pivot)
-					obj3d.x = quantize(newMat.tx, posQuant);
-					obj3d.y = quantize(newMat.ty, posQuant);
-					obj3d.z = quantize(newMat.tz, posQuant);
-							}
+						obj3d.x = quantize(newMat.tx, posQuant);
+						obj3d.y = quantize(newMat.ty, posQuant);
+						obj3d.z = quantize(newMat.tz, posQuant);
+					}
 
                     if (rot != null) {
                         obj3d.rotationX = quantize(M.radToDeg(euler.x), rotQuant);
                         obj3d.rotationY = quantize(M.radToDeg(euler.y), rotQuant);
                         obj3d.rotationZ = quantize(M.radToDeg(euler.z), rotQuant);
-						}
+					}
 
 					if(scale != null) {
 						var s = newMat.getScale();

+ 1 - 1
hrt/prefab/ContextShared.hx

@@ -26,7 +26,7 @@ class ContextShared {
 	// Never modify this in the middle of a instanciate without restoring it after
 	public var current2d : h2d.Object = null;
 
-	// Parent prefab if the object if it was created as a reference
+	// Parent prefab of the object if it was created as a reference
 	public var parentPrefab : Prefab = null;
 
 	/**