trin4ik / nova-switcher

iOS-switcher-style replacement for default Boolean field https://novapackages.com/packages/trin4ik/nova-switcher
12 stars 6 forks source link

Index view: table headings centered while switch is not #1

Closed johnpuddephatt closed 1 year ago

johnpuddephatt commented 1 year ago

Screenshot 2023-01-17 at 11 00 52

I'm seeing the above in my index view while using this field.

My first thought was to left-align the table heading but I can't see how this is controlled.

The alternative would be to center the switch (e.g. by adding margin: 0 auto; to the styles for .switch). Happy to submit a PR for this but it might be that you prefer to left-align the table heading?

trin4ik commented 1 year ago

@johnpuddephatt , ty for feedback. i think, we need align column from standart properties (realize textAlign method https://nova.laravel.com/docs/4.0/resources/fields.html#field-text-alignment) + auto-align-center, if no labels on switchers.

trin4ik commented 1 year ago

done