Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit e0f7fad

Browse files
committed
Cleanup
1 parent f92c215 commit e0f7fad

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/CacheObject/CacheObjectBase.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ protected string GetValueLabel()
220220
// string wants it trimmed to max 200 chars
221221
case ValueState.String:
222222
if (!LastValueWasNull)
223-
{
224-
string s = Value as string;
225-
return $"\"{ToStringUtility.PruneString(s, 200, 5)}\"";
226-
}
223+
return $"\"{ToStringUtility.PruneString(Value as string, 200, 5)}\"";
227224
break;
228225

229226
// try to prefix the count of the collection for lists and dicts

src/Inspectors/GameObjectWidgets/ComponentCell.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public override GameObject CreateContent(GameObject parent)
3434
var root = base.CreateContent(parent);
3535

3636
// Add mask to button so text doesnt overlap on Close button
37-
this.Button.Component.gameObject.AddComponent<Mask>().showMaskGraphic = true;
37+
//this.Button.Component.gameObject.AddComponent<Mask>().showMaskGraphic = true;
38+
this.Button.ButtonText.horizontalOverflow = HorizontalWrapMode.Wrap;
3839

3940
// Behaviour toggle
4041

0 commit comments

Comments
 (0)