@soffits/dsh-card-board 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2
4
+
5
+ - List rows on narrow cards (a phone) keep their buttons beside the title, with the date and chip underneath, instead of putting the buttons on a line of their own: a long list takes about a third less height.
6
+
3
7
  ## 0.4.1
4
8
 
5
9
  - A chat button's `payload.prompt` can be text in several languages like any other text; the other payload fields stay as written.
package/client.js CHANGED
@@ -492,8 +492,9 @@ window.__ModuleLoader__.load({
492
492
  h('div', { className: 'cb-listText' },
493
493
  h(Trunc, { className: 'cb-listTitle', lines: 2, text: row.title }),
494
494
  row.sub && h(Trunc, { className: 'cb-listSub', lines: 2, text: row.sub })),
495
- row.date && h('span', { className: 'cb-listDate' }, formatDay(toTime(row.date), locale, 0)),
496
- row.chip && h(Chip, row.chip),
495
+ (row.date || row.chip) && h('span', { className: 'cb-listMeta' },
496
+ row.date && h('span', { className: 'cb-listDate' }, formatDay(toTime(row.date), locale, 0)),
497
+ row.chip && h(Chip, row.chip)),
497
498
  row.actions && rowActions && h('span', { className: 'cb-rowActions' }, rowActions(i, row.actions, listRowLine(row))))))
498
499
  if (!data.progress) return rows
499
500
  // Beside the rows when there is room for both, else a small ring with its count above them.
@@ -988,6 +989,7 @@ h3.cb-truncOpen{overflow:visible}
988
989
  .cb-list li:first-child{border-top:0}
989
990
  .cb-listText{flex:1;min-width:0}
990
991
  .cb-listSub{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}
992
+ .cb-listMeta{display:flex;align-items:center;gap:10px;min-width:0}
991
993
  .cb-listDate{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px;font-variant-numeric:tabular-nums}
992
994
  .cb-done .cb-listTitle{color:var(--dsw-alias-label-tertiary)}
993
995
  .cb-checkBox{flex:none;display:inline-flex}
@@ -1010,9 +1012,11 @@ h3.cb-truncOpen{overflow:visible}
1010
1012
  .cb-statusValue small{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:16px}
1011
1013
  .cb-spark{min-width:0}
1012
1014
  @container (width<380px){
1013
- .cb-list li{flex-wrap:wrap}
1014
- .cb-list li .cb-listText{flex:1 1 9em}
1015
- .cb-list li .cb-rowActions{flex:1 0 100%;justify-content:flex-start;padding-left:28px}
1015
+ .cb-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0}
1016
+ .cb-list li .cb-checkBox{grid-column:1;grid-row:1;margin-right:10px}
1017
+ .cb-list li .cb-listText{grid-column:2;grid-row:1}
1018
+ .cb-list li .cb-rowActions{grid-column:3;grid-row:1;margin-left:8px}
1019
+ .cb-list li .cb-listMeta{grid-column:2/-1;grid-row:2;margin-top:2px}
1016
1020
  }
1017
1021
  @container (width<380px){
1018
1022
  .cb-status,.cb-statusSparks,.cb-statusActions,.cb-statusSparks.cb-statusActions{grid-template-columns:8px minmax(0,1fr) auto}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soffits/dsh-card-board",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "A data-driven card board for DeepSeek Harness: scripts write small JSON cards, the Web UI shows each person the boards they may see.",
5
5
  "type": "module",
6
6
  "license": "MIT",