Repository navigation
v3.31.0
Table and caption fixes reported from firmhive.
Fixed
<atom:caption>now prints the attributes you pass (id,x-show,class="mt-2"). Closes #58. Overriding its colour or making ittext-basestill needs!(Tailwind's compiled order).<atom:table>prints its attributes on the root, soclass,idandx-*apply. A non-prop you pass (e.g.total="7") now shows up as a DOM attribute — harmless.- Table cells and headers can wrap: the
whitespace-nowrapdefault is now zero-specificity, sowhitespace-normal(andmd:whitespace-normal) wins. A globaltd { white-space: normal }in a host app now also wins.
Added
<atom:table.cell truncate>— one long value ends in an ellipsis instead of stretching the table past its container. Don't addw-fullto the table for this: forcing fixed layout squeezes wide tables.
Changed
- A
<atom:table.search>bound withwire:model(ordata-filter-key) inside<atom:table.filters>now shows a search chip, and "Clear all" / the chip's ✕ empties it and refreshes the list. The chip appears on Enter or when leaving the box; withwire:model.liveit follows as you type. An unbound search is unchanged. - The inert
table-fixedclass is removed from the table (no visual change).
Known limits
- Two searches bound to the same name on one page (e.g. both
filters.search) share a chip, and "Clear all" clears both — same as the select filters today. - A server-side reset while the cursor is still in a deferred search box leaves the old chip until the box loses focus. A reset button is not affected.