Skip to content

Commit 83aeded

Browse files
committed
Move relationship item spacing class to parent
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).
1 parent e481fa5 commit 83aeded

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/js/components/inputs/relationship/Item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22

33
<div
4-
class="item mb-1 select-none"
4+
class="item select-none"
55
:class="{ 'invalid': item.invalid }"
66
>
77
<div class="item-move" v-if="sortable">&nbsp;</div>

resources/js/components/inputs/relationship/RelationshipInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<loading-graphic v-if="initializing" :inline="true" />
2121

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

0 commit comments

Comments
 (0)