Skip to content

Commit

Permalink
Move relationship item spacing class to parent
Browse files Browse the repository at this point in the history
This prevents an `.mb-1` on the last child, which prevents single item UIs from aligning center when using flex box (e.g. link fieldtype).
  • Loading branch information
jackmcdade committed May 8, 2021
1 parent e481fa5 commit 83aeded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/inputs/relationship/Item.vue
@@ -1,7 +1,7 @@
<template>

<div
class="item mb-1 select-none"
class="item select-none"
:class="{ 'invalid': item.invalid }"
>
<div class="item-move" v-if="sortable">&nbsp;</div>
Expand Down
Expand Up @@ -20,7 +20,7 @@
<loading-graphic v-if="initializing" :inline="true" />

<template v-if="!initializing && !usesSelectField">
<div ref="items" class="relationship-input-items outline-none">
<div ref="items" class="relationship-input-items space-y-1 outline-none">
<component
:is="itemComponent"
v-for="(item, i) in items"
Expand Down

0 comments on commit 83aeded

Please sign in to comment.