File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -161,20 +161,23 @@ defmodule Backpex.Fields.HasMany do
161
161
{ @ prompt }
162
162
</ p >
163
163
164
- < div :for = { { label , value } <- @ selected } class = "badge badge-sm badge-primary pointer-events-auto pr-0 " >
164
+ < div
165
+ :for = { { label , value } <- @ selected }
166
+ class = "badge badge-sm badge-soft badge-primary pointer-events-auto pr-0 "
167
+ >
165
168
< span > { label } </ span >
166
169
< label
167
170
class = "flex cursor-pointer items-center pr-2 "
168
171
role = "button "
169
172
for = { "has-many-#{ @ name } -checkbox-value-#{ value } " }
170
173
aria-label = { Backpex . __ ( { "Unselect %{label}" , % { label: label } } , @ live_resource ) }
171
174
>
172
- < Backpex.HTML.CoreComponents . icon name = "hero-x-mark " class = "text-primary-content size-4 " />
175
+ < Backpex.HTML.CoreComponents . icon name = "hero-x-mark " class = "size-4 scale-105 hover:scale-110 " />
173
176
</ label >
174
177
</ div >
175
178
</ div >
176
179
</ label >
177
- < Form . error :for = { msg <- @ errors } > { msg } </ Form . error >
180
+ < Form . error :for = { msg <- @ errors } class = " mt-1 " > { msg } </ Form . error >
178
181
< div tabindex = "0 " class = "dropdown-content z-[1] menu bg-base-100 rounded-box w-full overflow-y-auto shadow " >
179
182
< div class = "max-h-72 p-2 " >
180
183
< input
Original file line number Diff line number Diff line change @@ -128,16 +128,10 @@ defmodule Backpex.Fields.MultiSelect do
128
128
~H"""
129
129
< div class = { [ @ live_action in [ :index , :resource_action ] && "truncate" ] } >
130
130
{ if @ selected_labels == [ ] , do: raw ( "—" ) }
131
-
132
- < div class = { [ "flex" , @ live_action == :show && "flex-wrap" ] } >
133
- < . intersperse :let = { item } enum = { @ selected_labels } >
134
- <: separator >
135
- ,
136
- </: separator >
137
- < p >
138
- { HTML . pretty_value ( item ) }
139
- </ p >
140
- </ . intersperse >
131
+ < div class = "space-x-1 " >
132
+ < div :for = { item <- @ selected_labels } class = "badge badge-sm badge-soft badge-primary " >
133
+ < span > { HTML . pretty_value ( item ) } </ span >
134
+ </ div >
141
135
</ div >
142
136
</ div >
143
137
"""
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ defmodule Backpex.HTML.Form do
282
282
{ @ prompt }
283
283
</ p >
284
284
285
- < div :for = { { label , value } <- @ selected } class = "badge badge-sm badge-primary pointer-events-auto pr-0 " >
285
+ < div :for = { { label , value } <- @ selected } class = "badge badge-sm badge-soft badge- primary pointer-events-auto pr-0 " >
286
286
{ label }
287
287
< div
288
288
class = "flex cursor-pointer items-center pr-2 "
@@ -292,7 +292,7 @@ defmodule Backpex.HTML.Form do
292
292
phx-target = { @ event_target }
293
293
aria-label = { Backpex . __ ( { "Unselect %{label}" , % { label: label } } , @ live_resource ) }
294
294
>
295
- < Backpex.HTML.CoreComponents . icon name = "hero-x-mark " class = "text-primary-content size-4 scale-110 " />
295
+ < Backpex.HTML.CoreComponents . icon name = "hero-x-mark " class = "size-4 scale-105 hover: scale-110 " />
296
296
</ div >
297
297
</ div >
298
298
</ div >
You can’t perform that action at this time.
0 commit comments