Skip to content

Commit e023bb3

Browse files
julienamsellemEvergreen
authored andcommitted
[VFX] Prevent Shader Graph properties with too long names to break VFX Graph layout in the output contexts
1 parent 34f5d65 commit e023bb3

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

  • Packages/com.unity.visualeffectgraph/Editor/UIResources/uss

Packages/com.unity.visualeffectgraph/Editor/UIResources/uss/PropertyRM.uss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
{
5757
height: 16px;
5858
overflow:hidden;
59+
text-overflow: ellipsis;
5960
-unity-text-align:middle-left;
6061
}
6162

@@ -361,13 +362,21 @@ VFXColorField .colorcontainer
361362
white-space: pre;
362363
}
363364

365+
.output .propertyrm .unity-base-field > Label,
366+
.output .propertyrm Label.label {
367+
max-width: 150px;
368+
}
369+
370+
.output .propertyrm.expandable Label.label {
371+
max-width: 138px;
372+
}
373+
364374
#settings .propertyrm .unity-base-field > Label {
365-
margin-left: 14px;
366-
margin-right: 0;
375+
margin-left: 16px;
367376
}
368377

369378
#settings .propertyrm .fieldContainer > Label {
370-
margin-left: 14px;
379+
margin-left: 16px;
371380
}
372381

373382
.fieldContainer #FieldParent {

0 commit comments

Comments
 (0)