@yuneta/gobj-ui 7.32.6 → 7.32.7

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/README.md CHANGED
@@ -1481,7 +1481,9 @@ for a reason worth keeping: in `em` the same `1.5em` drew 24px inside a plain
1481
1481
  button, 18px inside an `is-small` chip of the legend, and a labelled button
1482
1482
  left its icon at the inherited 16px — three sizes in two strips that are read
1483
1483
  as one thing. It is the toolbar's size and not the graph's: the JSON viewer,
1484
- the treedb topics row and the treedb table row take it too. The app BAR keeps
1484
+ the treedb topics row and the treedb table row take it too, and since
1485
+ `7.32.7` the tabs and the menu entries of `C_YUI_NAV` and the topic tabs of
1486
+ `C_YUI_TREEDB_TOPICS`. The app BAR keeps
1485
1487
  its own, bigger glyph (`.yui-toolbar-item .icon`, 1.35rem on 44px items) —
1486
1488
  that is a different band, not drift. The legend under the toolbar
1487
1489
  follows it: topic name at `1rem`, count at `.875rem` (the one deliberate step
@@ -4516,6 +4518,19 @@ text is in the yunetas `CLAUDE.md` ("JS GUI conventions"); in short:
4516
4518
  A Bulma `.icon` grows to hold a wide glyph. Up to 7.32.5 every box was a
4517
4519
  1em square, and a wide glyph was drawn smaller to fit: in one row of tool
4518
4520
  buttons, `yi-code` was 80% of the height of the others.
4521
+ - **The icons of a row of controls have one size**: `YUI_TOOLBAR_ICON_SIZE`
4522
+ (1.25rem, `yui_toolbar.js`). A toolbar, a tab, a menu entry and the
4523
+ paginator of a table on a phone take it (7.32.7+). Build the glyph with
4524
+ `yui_toolbar_icon()` in a plain Bulma `.icon`:
4525
+
4526
+ ```js
4527
+ ['span', {class: 'icon'}, [yui_toolbar_icon('yi-table')]]
4528
+ ```
4529
+
4530
+ The app bar, the icon bar and the cards are other bands, with their own
4531
+ bigger icons. The close mark of a tab is no icon of the tab and keeps the
4532
+ size of its text. Up to 7.32.6 a tab and a menu entry took the size of
4533
+ their text, 16px. Under a toolbar of 20px their icons looked smaller.
4519
4534
  - **Bulma helpers carry `!important`** (`.is-hidden`, `.is-flex`): toggle
4520
4535
  `is-hidden`, or use `style.setProperty('display', 'none', 'important')`.
4521
4536
  - **Data goes into the DOM as text, never as a string.** `createElement2()`