@spectral_labs/ui 1.1.0 → 1.1.1

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.
@@ -83,6 +83,25 @@
83
83
  flex-shrink: 0;
84
84
  }
85
85
 
86
+ /**
87
+ * Push the trailing slot to the far right of `.sp-app-bar-row`. In small
88
+ * mode the row layout is `leading | title | children | trailing` ; only
89
+ * `.sp-app-bar-title` (when present) carries `flex: 1` to push trailing
90
+ * right. When the consumer renders the brand inside the `leading`
91
+ * snippet and omits `title` (e.g. to keep a clickable brand link), the
92
+ * trailing collapsed against the leading. `margin-left: auto` makes the
93
+ * trailing universally right-aligned without changing the title spacer
94
+ * logic — neutral when title is present (title already absorbs the row
95
+ * flex), corrective when title is absent.
96
+ *
97
+ * Medium/large modes use `.sp-app-bar-spacer` as the explicit flex
98
+ * spacer, so trailing is already right-aligned there. We scope this
99
+ * fix to `.small` only to avoid surprise.
100
+ */
101
+ .sp-app-bar.small .sp-app-bar-trailing {
102
+ margin-left: auto;
103
+ }
104
+
86
105
  .sp-app-bar-headline {
87
106
  padding: 0 1rem 1.5rem;
88
107
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spectral_labs/ui",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
7
7
  "access": "public"