Skip to content

Commit

Permalink
button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmontville committed May 29, 2024
1 parent f5eb1eb commit 4502439
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/tasks/ManageTasks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
</div>

<div v-if="newFields.length > 0" class="w-full">
<div v-for="(field, index) in newFields" :key="index" class="flex align-items-center mb-1">
<div v-for="(field, index) in newFields" :key="index" class="flex align-items-center column-gap-2 mb-1">
<PvInputText v-model="field.name" placeholder="Field Name" />
<PvDropdown v-model="field.type" :options="['string', 'number', 'boolean']" placeholder="Field Type" />

Expand Down
10 changes: 7 additions & 3 deletions src/components/tasks/ManageVariants.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
id="inputParamValue"
v-model="variantParams[param.name]"
placeholder="Set game parameter to desired value"
class="flex-grow-1"
/>
<PvDropdown
v-else-if="param.type === 'boolean'"
Expand All @@ -112,12 +113,14 @@
option-label="label"
option-value="value"
placeholder="Set game parameter to desired value"
class="flex-grow-1"
/>
<PvInputNumber
v-else-if="param.type === 'number'"
id="inputParamValue"
v-model="variantParams[param.name]"
placeholder="Set game parameter to desired value"
class="flex-grow-1"
/>
</div>

Expand All @@ -126,13 +129,14 @@
</div>
</div>

<div v-if="newParams.length > 0">
<div v-if="newParams.length > 0" class="w-full">
<div v-for="(field, index) in newParams" :key="index" class="flex align-items-center column-gap-2 mb-1">
<PvInputText v-model="field.name" placeholder="Field Name" />
<PvDropdown
v-model="field.type"
:options="['string', 'number', 'boolean']"
placeholder="Field Type"
class="flex-grow-1"
/>

<PvInputText
Expand All @@ -156,10 +160,10 @@
option-value="value"
class="flex-grow-1"
/>
<PvButton type="button" @click="removeField(field.name, newParams)">Delete</PvButton>
<PvButton type="button" class="w-2" @click="removeField(field.name, newParams)">Delete</PvButton>
</div>
</div>
<PvButton label="Add Param" text icon="pi pi-plus" class="m-auto my-4" @click="newParam" />
<PvButton label="Add Param" text icon="pi pi-plus" class="m-auto my-4 w-2" @click="newParam" />
</div>
</div>
<div class="flex flex-row align-items-center justify-content-center gap-2 flex-order-0 my-3">
Expand Down

0 comments on commit 4502439

Please sign in to comment.