UI change
This commit is contained in:
@@ -103,7 +103,6 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</section>
|
||||
|
||||
@@ -535,13 +534,6 @@
|
||||
<InputText class="input-shell" @bind-Value="effect.BodyPart" />
|
||||
</div>
|
||||
}
|
||||
@if (ShouldShowTargetField(effect))
|
||||
{
|
||||
<div class="field-shell critical-editor-effect-extra">
|
||||
<label>Target</label>
|
||||
<InputText class="input-shell" @bind-Value="effect.Target" />
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<button type="button" class="critical-editor-inline-button" @onclick="onRemove">Remove</button>
|
||||
</div>;
|
||||
@@ -578,8 +570,4 @@
|
||||
break;
|
||||
}
|
||||
</div>;
|
||||
|
||||
private static bool ShouldShowTargetField(CriticalEffectEditorModel effect) =>
|
||||
!string.Equals(effect.EffectCode, CriticalEffectCodes.DirectHits, StringComparison.Ordinal) &&
|
||||
!string.IsNullOrWhiteSpace(effect.Target);
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user