Skip to content

Commit

Permalink
💄 Make array fieldtype full width. Closes #2315.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcdade committed Sep 1, 2020
1 parent 64f0597 commit 871a9e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/ArrayFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<table v-if="isKeyed" class="array-table">
<tbody>
<tr v-if="data" v-for="(element, index) in keyedData" :key="element._id">
<th><label :for="fieldId+'__'+element.key">{{ config.keys[element.key] }}</label></th>
<th class="w-1/4"><label :for="fieldId+'__'+element.key">{{ config.keys[element.key] }}</label></th>
<td>
<input type="text" class="input-text-minimal" :id="fieldId+'__'+element.key" v-model="data[index].value" :readonly="isReadOnly" />
</td>
Expand Down
4 changes: 2 additions & 2 deletions resources/sass/components/array.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

.array-table {
@apply border rounded border-separate text-sm text-left;
@apply border rounded border-separate text-sm text-left w-full;

tr:not(:last-child) {
th, td {
Expand Down Expand Up @@ -54,4 +54,4 @@
th { @apply text-grey-50; }
tr td { @apply bg-grey-20; }
}
}
}

0 comments on commit 871a9e7

Please sign in to comment.