Skip to content

Commit a62fffe

Browse files
enhance editor ui
1 parent 0775453 commit a62fffe

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

UnityProject/Packages/com.jasonxudeveloper.jengine.core/Editor/CustomEditor/JEngineCommon.uss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Foldout {
115115
.form-row {
116116
display: flex;
117117
flex-direction: row;
118+
flex-wrap: wrap;
118119
align-items: center;
119120
justify-content: flex-start;
120121
margin: 4px 0;
@@ -141,6 +142,7 @@ Foldout {
141142
flex-grow: 1;
142143
flex-shrink: 1;
143144
min-width: 120px;
145+
flex-basis: 0;
144146
align-self: center;
145147
display: flex;
146148
align-items: center;
@@ -150,6 +152,7 @@ Foldout {
150152
flex-grow: 1;
151153
flex-shrink: 1;
152154
min-width: 120px;
155+
flex-basis: 0;
153156
margin-right: 8px;
154157
align-self: center;
155158
display: flex;

UnityProject/Packages/com.jasonxudeveloper.jengine.core/Editor/CustomEditor/Panel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ private void RefreshScenesPage(string[] sceneAssets)
222222
value = sceneAsset
223223
};
224224
sceneField.SetEnabled(false);
225-
sceneField.AddToClassList("form-control");
226225
sceneField.AddToClassList("scene-field");
227226
EditorUIUtils.MakeTextResponsive(sceneField);
228227

UnityProject/Packages/com.jasonxudeveloper.jengine.core/Editor/CustomEditor/Panel.uss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@
161161
}
162162

163163
.scene-item-container {
164+
display: flex;
164165
flex-direction: column;
166+
align-items: stretch;
165167
width: 100%;
166168
margin-bottom: 12px;
167169
margin-left: 0;
@@ -170,7 +172,10 @@
170172

171173
.scene-field {
172174
width: 100%;
173-
margin-bottom: 4px;
175+
margin-bottom: 8px;
176+
flex-grow: 0;
177+
flex-shrink: 0;
178+
flex-basis: auto;
174179
}
175180

176181
.pagination-container {

0 commit comments

Comments
 (0)