@nubisco/ui 1.51.0 → 1.52.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubisco/ui",
3
- "version": "1.51.0",
3
+ "version": "1.52.0",
4
4
  "description": "Vue 3 UI component library",
5
5
  "packageManager": "pnpm@11.0.8",
6
6
  "repository": {
@@ -32,9 +32,12 @@
32
32
  }
33
33
 
34
34
  // Two-column rows: label left (quiet), control right, so every value shares
35
- // one left edge you scan straight down and each field is half as tall.
36
- .nb-text-input,
37
- .nb-select {
35
+ // one left edge you scan straight down and each field is half as tall. Only
36
+ // fields that HAVE a label get the two-column grid; a label-less input (e.g.
37
+ // a bare list of text inputs) stays full width instead of gaining a phantom
38
+ // empty label column.
39
+ .nb-text-input:has(> .nb-label),
40
+ .nb-select:has(> .nb-label) {
38
41
  display: grid;
39
42
  grid-template-columns: var(--nb-inspector-label-width) minmax(0, 1fr);
40
43
  align-items: center;
@@ -53,4 +56,24 @@
53
56
  text-transform: none;
54
57
  letter-spacing: 0;
55
58
  }
59
+
60
+ // Sliders take the same two-column shape. The default variant's field-box is
61
+ // display:contents, so override it to a block to make it the value cell, and
62
+ // let the track shrink into the narrower column beside its readout.
63
+ .nb-slider:has(> .nb-slider__label) {
64
+ display: grid;
65
+ grid-template-columns: var(--nb-inspector-label-width) minmax(0, 1fr);
66
+ align-items: center;
67
+ column-gap: 10px;
68
+
69
+ .nb-slider__label {
70
+ font-size: var(--nb-font-size-11, 11px);
71
+ line-height: 1.2;
72
+ color: var(--nb-c-text-muted);
73
+ }
74
+ .nb-slider__field-box {
75
+ display: block;
76
+ min-width: 0;
77
+ }
78
+ }
56
79
  }