Repository navigation
v2.1.0 — Gridory
·
34 commits
to main
since this release
Minor release of Gridory: the kanban can fill the height of its container and size its columns. Everything new
is opt-in: without the new props the kanban renders the same markup, classes and styles as in 2.0.0, with 320px
columns, and nothing else changes.
English
Upgrade
npm install gridory@2.1.0New
- Kanban: full height.
fillHeightmakes the board fill its parent's height, like the table'sfillHeight:
each column body stretches to the bottom and scrolls on its own, the page does not grow and the board keeps
scrolling sideways when the columns do not fit. The parent must have a bounded height. While it is on,
columnBodyMaxHeightand the minimum height ofboardMinHeightClassNamestop applying. Class.gdy-kanban-fill
on the root. - Kanban: column width.
columnWidth(px) sets the width of every open column, through the new
--gdy-kanban-column-widthtoken (default320px). The prop writes the token on the root, so it wins over the
same token on an ancestor; the token set on one column wins over the prop, which gives a single wider column
without touching internal classes. - Kanban: automatic width.
fillWidthshares the board's width equally among the open columns, never below
columnWidth(or 320px): no empty strip on a wide screen, and a sideways scroll when the columns do not fit.
Class.gdy-kanban-fill-widthon the root.
Good to know
- Collapsed columns keep their strip in every mode and take no part in the share; the columns shown while
loadingtake the same width and height as the real ones. - On a phone one 320px column fits and the board scrolls sideways, as before. A
columnWidthwider than the screen
is not narrowed. - These props replace the usual patch on internal classes (
flexon.gdy-kanban-columnand
max-height: none !importanton.gdy-kanban-column-body), which a later version could break. - A JavaScript bundle that does not use the new props grows by about 0.1 KB gzipped, and the CSS by less than 0.1 KB.
See Column size in the kanban
guide; every guide is linked from the README.
Español
Actualizar
npm install gridory@2.1.0Novedades
- Kanban: alto completo.
fillHeighthace que el tablero ocupe la altura de su padre, como elfillHeightde la
tabla: el cuerpo de cada columna se estira hasta abajo y hace scroll propio, la página no crece y el tablero sigue
haciendo scroll horizontal cuando las columnas no entran. El padre tiene que tener una altura acotada. Mientras
está activa,columnBodyMaxHeighty la altura mínima deboardMinHeightClassNamedejan de aplicar. Clase
.gdy-kanban-fillen la raíz. - Kanban: ancho de las columnas.
columnWidth(px) fija el ancho de cada columna abierta, con el token nuevo
--gdy-kanban-column-width(por defecto320px). La prop escribe el token en la raíz, así que gana al mismo token
en un ancestro; el token puesto en una columna gana a la prop, lo que permite una sola columna más ancha sin tocar
clases internas. - Kanban: ancho automático.
fillWidthreparte el ancho del tablero en partes iguales entre las columnas
abiertas, sin bajar decolumnWidth(o 320px): sin franja vacía en una pantalla ancha y con scroll horizontal
cuando las columnas no entran. Clase.gdy-kanban-fill-widthen la raíz.
Para tener en cuenta
- Las columnas colapsadas siguen siendo una franja en todos los modos y no entran en el reparto; las columnas que se
muestran mientrasloadingtoman el mismo ancho y alto que las reales. - En un celular entra una columna de 320px y el tablero hace scroll horizontal, como antes. Un
columnWidthmás
ancho que la pantalla no se achica. - Estas props reemplazan el parche habitual sobre clases internas (
flexen.gdy-kanban-columny
max-height: none !importanten.gdy-kanban-column-body), que una versión siguiente podía romper. - Un paquete de JavaScript que no usa las props nuevas crece unos 0,1 KB comprimidos, y el CSS menos de 0,1 KB.
Ver Tamaño de las columnas
en la guía del kanban; todas las guías están enlazadas desde el README.