Skip to content

Commit 5fc3f3f

Browse files
[6.x] Show dashed border in assets fieldtype when field is read-only (#14507)
1 parent b99ae25 commit 5fc3f3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/components/fieldtypes/assets/AssetsFieldtype.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
>
105105
<div
106106
class="bg-white relative grid gap-4 2xl:gap-10 p-3 relative rounded-xl border border-gray-300 dark:bg-gray-850 dark:border-gray-700"
107-
:class="{ 'border-t-0 rounded-t-none': !isReadOnly && (showPicker || uploads.length) }"
107+
:class="{ 'border-t-0 rounded-t-none': !isReadOnly && (showPicker || uploads.length), 'border-dashed': isReadOnly }"
108108
ref="assets"
109109
style="grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));"
110110
>
@@ -126,7 +126,7 @@
126126

127127
<div
128128
class="relative overflow-hidden rounded-xl border border-gray-300 dark:border-gray-700"
129-
:class="{ 'not-[.link-fieldtype_&]:border-t-0! not-[.link-fieldtype_&]:rounded-t-none': !isReadOnly && (showPicker || uploads.length) }"
129+
:class="{ 'not-[.link-fieldtype_&]:border-t-0! not-[.link-fieldtype_&]:rounded-t-none': !isReadOnly && (showPicker || uploads.length), 'border-dashed': isReadOnly }"
130130
v-if="displayMode === 'list'"
131131
>
132132
<table class="table-fixed w-full">

0 commit comments

Comments
 (0)