Skip to content

Commit

Permalink
feat: improve visual spacing in entry form
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Nov 5, 2024
1 parent b32e49a commit 89b3824
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/ftbot/ForceEntryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ const inputSelect = (bvModalEvt) => {
label-for="order-direction"
invalid-feedback="Order direction must be set"
:state="orderSide !== undefined"
label-class="mb-1"
class="mb-2"
>
<BFormRadioGroup
id="order-direction"
Expand All @@ -121,6 +123,8 @@ const inputSelect = (bvModalEvt) => {
label-for="pair-input"
invalid-feedback="Pair is required"
:state="selectedPair !== undefined"
label-class="mb-1"
class="mb-2"
>
<BFormInput
id="pair-input"
Expand All @@ -136,6 +140,8 @@ const inputSelect = (bvModalEvt) => {
label-for="price-input"
invalid-feedback="Price must be empty or a positive number"
:state="!price || price > 0"
label-class="mb-1"
class="mb-2"
>
<BFormInput
id="price-input"
Expand All @@ -150,6 +156,8 @@ const inputSelect = (bvModalEvt) => {
label-for="stake-input"
invalid-feedback="Stake-amount must be empty or a positive number"
:state="!stakeAmount || stakeAmount > 0"
label-class="mb-1"
class="mb-2"
>
<BFormInput
id="stake-input"
Expand All @@ -165,6 +173,8 @@ const inputSelect = (bvModalEvt) => {
label-for="leverage-input"
invalid-feedback="Leverage must be empty or a positive number"
:state="!leverage || leverage > 0"
label-class="mb-0"
class="mb-2"
>
<BFormInput
id="leverage-input"
Expand All @@ -179,6 +189,8 @@ const inputSelect = (bvModalEvt) => {
label-for="ordertype-input"
invalid-feedback="OrderType"
:state="true"
label-class="mb-1"
class="mb-2"
>
<BFormRadioGroup
id="ordertype-input"
Expand All @@ -195,6 +207,8 @@ const inputSelect = (bvModalEvt) => {
v-if="botStore.activeBot.botApiVersion > 1.16"
label="*Custom entry tag Optional]"
label-for="enterTag-input"
label-class="mb-1"
class="mb-2"
>
<BFormInput
id="enterTag-input"
Expand Down

0 comments on commit 89b3824

Please sign in to comment.