resizable columns

This commit is contained in:
Hunter
2026-08-12 19:58:42 -04:00
parent 45b1539c68
commit 9b261d8a0f
3 changed files with 253 additions and 62 deletions

View File

@@ -44,10 +44,8 @@ async function toggle(node: Node) {
}
/**
* Ordering is applied at render rather than at fetch, so flipping it costs a
* re-sort of the nodes already on screen and never re-walks the store. The
* store hands back count order; `localeCompare` with numeric collation is
* what makes `Item_2` precede `Item_10` in the alphabetical mode.
* Ordering is applied at render rather than at fetch, so flipping it costs a re-sort of the nodes already on screen and never re-walks the store. The
* store hands back count order; `localeCompare` with numeric collation is what makes `Item_2` precede `Item_10` in the alphabetical mode.
*/
const order = ref<'count' | 'alpha'>('count')
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' })