Skip to content

Commit 499d73e

Browse files
committed
fix: improve field card density and icon styling
1 parent 56ae025 commit 499d73e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

resources/views/livewire/manage-custom-field-section.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<x-filament::icon-button
1111
icon="heroicon-m-bars-4"
1212
color="gray"
13+
class="text-gray-500"
14+
size="xs"
1315
x-sortable-handle
1416
/>
1517

@@ -30,7 +32,7 @@
3032
x-sortable-group="fields"
3133
data-section-id="{{ $section->id }}"
3234
default="12"
33-
class="fi-sc fi-sc-has-gap fi-grid lg:fi-grid-cols"
35+
class="fi-sc fi-sc-has-gap fi-sc-dense fi-grid lg:fi-grid-cols"
3436
style="--cols-lg: repeat(12, minmax(0, 12fr)); --cols-default: repeat(2, minmax(0, 1fr));"
3537
@end.stop="$wire.updateFieldsOrder($event.to.getAttribute('data-section-id'), $event.to.sortable.toArray())"
3638
>

resources/views/livewire/manage-custom-field.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ class="fi-section !px-2 fi-compact !py-2 shadow-none fi-grid-col flex justify-be
1010
<x-filament::icon-button
1111
icon="heroicon-m-bars-3"
1212
color="gray"
13+
class="ml-0.5 text-gray-500"
14+
size="xs"
1315
/>
1416

1517
<x-filament::icon
1618
:icon="$field->typeData?->icon ?? 'heroicon-o-document-text'"
17-
class="h-5 w-5 text-gray-500 dark:text-gray-400"
19+
class="h-4.5 w-4.5 text-neutral-700 dark:text-neutral-400 ml-2"
1820
:aria-label="$field->name"
1921
/>
2022

resources/views/livewire/manage-fields-without-sections.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div
44
x-sortable
55
x-sortable-group="fields"
6-
class="fi-sc fi-sc-has-gap fi-grid lg:fi-grid-cols"
6+
class="fi-sc fi-sc-has-gap fi-sc-dense fi-grid lg:fi-grid-cols"
77
style="--cols-lg: repeat(12, minmax(0, 12fr)); --cols-default: repeat(2, minmax(0, 1fr));"
88
@end.stop="$wire.updateFieldsOrder($event.to.sortable.toArray())"
99
>

0 commit comments

Comments
 (0)