vincjo / datatables

A toolkit for creating datatable components with Svelte
https://vincjo.fr/datatables
MIT License
363 stars 15 forks source link

Reduce `ThFilter` horizontal padding. #110

Open gibbz00 opened 1 week ago

gibbz00 commented 1 week ago

Hii,

Refraining from sending this in as a first PR as I suspect this isn't as straight forward as it sounds. SSD does nonetheless advertise itself as headless, so I would (personally) like it to add as little styling as possible. Same goes for the other Th*.

Amazing project btw :)

Before:

2024-06-27-185501_screenshot

With padding: 0 20px removed:

2024-06-27-185610_screenshot

vincjo commented 1 week ago

Hi, Thanks for the question.

I'd recommand to craft your own components for cutomization requirements.

The components bring too much style opinion to provide a very large reusability. There are more like a starting point to make things work quickly (hello world).

At this point, any style modification would imply a breaking change for the lib.

vincjo commented 1 week ago

Maybe more ankowledged dev than me can help for component style in next 2.0. I already worked on to reduce code complexity and make it usable for both client and server-side data processing.

https://github.com/vincjo/datatables/tree/runes/src/lib/src/shared

I welcome proposals and pr for 2.0