Skip to content

Tags

Tags

v1.4.0

Toggle v1.4.0's commit message
DateRangePicker: today prop

v1.3.4

Toggle v1.3.4's commit message
SelectInput: scroll the list, not the page, when the cursor moves

scrollIntoView() also scrolled every ancestor, and on open it ran before
the Overlay had measured its position, jumping the page to the top.

v1.3.3

Toggle v1.3.3's commit message
DataTable: UI for small screens fix

v1.3.2

Toggle v1.3.2's commit message
DropdownMenu: stacked

v1.3.1

Toggle v1.3.1's commit message
DataTable: sticky with observable

v1.2.0

Toggle v1.2.0's commit message
DropdownMenu component

v1.1.4

Toggle v1.1.4's commit message
DataTable: stack below 920px, per-column classes, wrapping toolbar

- .table-stacked now turns rows into cards below 920px (was 576px): a table
  with a link, a date and actions is already cramped on a laptop beside a
  sidebar. The toolbar follows the same query (.data-table-toolbar /
  .data-table-actions): search and buttons each take a full row, centred.
- TableColumn takes an optional cssClass for the header cell. Not `$class`:
  parameter names reach the transpiled JS verbatim and `class` is reserved,
  which fails the whole bundle.
- .table-col-wide-only hides a column only between 920 and 1199px, where the
  table is still a grid but narrow; stacked cards show the field again.
- The toolbar's actions are a wrapping flex row with a gap, so buttons that run
  out of room wrap cleanly. Slot buttons need no margins of their own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

v1.1.3

Toggle v1.1.3's commit message
CopyButton

v1.1.2

Toggle v1.1.2's commit message
DataTable: stacked rows on phones, and room for long URLs

A `stacked` DataTable (or any table carrying .table-stacked) turns each row
into a card below 576px: the header hides, cells flow inline behind their
data-label, .table-stacked-main cells lift to the top at full width and the
row actions push to the end. DataTable labels its default cells and hands
column templates the title as `label`, which Viewi drops harmlessly for a
template that has no such prop.

.text-clamp-2 cuts a long value to two lines at any width and .cell-wide
keeps a column from being starved to one character: overflow-wrap:anywhere
takes its min-content to nothing, so a user's 1,000-character target URL
used to wrap down a 100px column and make one row fill the screen.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

v1.1.1

Toggle v1.1.1's commit message
Let the DataTable scroll sideways instead of widening the page

The table was emitted bare, so on a phone a list with more than two or three
columns pushed the whole document wider than the viewport and left every other
block on the page scrolling horizontally with it. Wrapping it in
.table-responsive keeps the overflow inside the table.

The if moves from the table to the new wrapper: it was the only thing
suppressing an empty table when the list is empty, and the empty state that
follows is a separate if, not an else, so nothing else had to change.

The toolbar and the paging row take .stack-sm's companion .center-sm (from
Pupils' admin.css) so the action buttons and the pager sit in the middle of
the collapsed column rather than jammed against its right edge.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>