Skip to content

v2.1.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 09 Nov 02:19
· 34 commits to main since this release
4d2190c

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 · Español

English

Upgrade

npm install gridory@2.1.0

New

  • Kanban: full height. fillHeight makes the board fill its parent's height, like the table's fillHeight:
    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,
    columnBodyMaxHeight and the minimum height of boardMinHeightClassName stop 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-width token (default 320px). 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. fillWidth shares 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-width on the root.

Good to know

  • Collapsed columns keep their strip in every mode and take no part in the share; the columns shown while
    loading take the same width and height as the real ones.
  • On a phone one 320px column fits and the board scrolls sideways, as before. A columnWidth wider than the screen
    is not narrowed.
  • These props replace the usual patch on internal classes (flex on .gdy-kanban-column and
    max-height: none !important on .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.0

Novedades

  • Kanban: alto completo. fillHeight hace que el tablero ocupe la altura de su padre, como el fillHeight de 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, columnBodyMaxHeight y la altura mínima de boardMinHeightClassName dejan de aplicar. Clase
    .gdy-kanban-fill en 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 defecto 320px). 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. fillWidth reparte el ancho del tablero en partes iguales entre las columnas
    abiertas, sin bajar de columnWidth (o 320px): sin franja vacía en una pantalla ancha y con scroll horizontal
    cuando las columnas no entran. Clase .gdy-kanban-fill-width en 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 mientras loading toman 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 columnWidth más
    ancho que la pantalla no se achica.
  • Estas props reemplazan el parche habitual sobre clases internas (flex en .gdy-kanban-column y
    max-height: none !important en .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.