@octabits-io/nuxt-ui-kit 0.17.1 → 0.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octabits-io/nuxt-ui-kit",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "Frontend kit for Nuxt/Vue admin SPAs: OIDC session harness (oidc-client-ts), API-client seams (base URL + OIDC bearer), auth/org store cores, and a route-guard builder — factory-style seams the app wires into its own plugins, stores, and middleware",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -177,6 +177,21 @@ const menuGroups = computed<DropdownMenuItem[][]>(() => {
177
177
  const hasUtilityRegion = computed(() =>
178
178
  inlineUtilityItems.value.length > 0 || (showHelp.value && !utilitiesCollapsed.value),
179
179
  );
180
+
181
+ /**
182
+ * Is there anything to the LEFT of the utility region for the separator to
183
+ * separate it from? Everything the template renders before it, in order:
184
+ * the inline actions, the AI cluster, and the overflow menu (which draws
185
+ * nothing when its group list is empty).
186
+ *
187
+ * Without this the rule is drawn against the start of the cluster. A record
188
+ * route that declares no actions — only the help registry — renders a bar
189
+ * whose entire content is a vertical line and the Help button beside it, the
190
+ * line dividing Help from nothing.
191
+ */
192
+ const hasLeadingContent = computed(() =>
193
+ inlineEntries.value.length > 0 || inlineAiItems.value.length > 0 || menuGroups.value.length > 0,
194
+ );
180
195
  </script>
181
196
 
182
197
  <template>
@@ -251,7 +266,7 @@ const hasUtilityRegion = computed(() =>
251
266
  </UDropdownMenu>
252
267
  <PageActionMenu :items="menuGroups" />
253
268
  <template v-if="hasUtilityRegion">
254
- <USeparator orientation="vertical" class="h-5 mx-1" />
269
+ <USeparator v-if="hasLeadingContent" orientation="vertical" class="h-5 mx-1" />
255
270
  <PageAction
256
271
  v-for="item in inlineUtilityItems"
257
272
  :key="item.key"