@nebularstreams/libmui 2.5.73 → 2.5.75

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebularstreams/libmui",
3
3
  "description": "Micro UI based on Mithril",
4
- "version": "2.5.73",
4
+ "version": "2.5.75",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -19,3 +19,7 @@
19
19
  width: 100%;
20
20
  margin-bottom: 0.5rem;
21
21
  }
22
+
23
+ .addbut.none {
24
+ width: 100%;
25
+ }
@@ -104,7 +104,7 @@ const
104
104
  tabIndex: -1,
105
105
  icon: attrs.icon || "plus",
106
106
  title: attrs.addTitle || "Add a new item",
107
- class: "pad-2 pad-h al-center unitheightsmall transp addbut scaff-left bg-window-lo grows",
107
+ class: "pad-2 pad-h al-center unitheightsmall transp addbut scaff-left bg-window-lo grows" + (items.length ? " some" : " empty"),
108
108
  onClick: (e) => onAdd(e.ctrlKey || e.metaKey),
109
109
  text: items?.length ? "" : addText
110
110
  })