@7365admin1/layer-common 4.97.1-staging.685 → 4.97.1-staging.687

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.
@@ -941,6 +941,18 @@ const updateActionText = computed(() => {
941
941
  white-space: normal;
942
942
  max-width: 300px;
943
943
  }
944
+ /* Phone card layout: the cell is ~190 px, so the pill was squeezed to "Rang…".
945
+ Let the role pill keep its width and the site drop to the next line. */
946
+ @media (max-width: 599.98px) {
947
+ .member-access {
948
+ flex-wrap: wrap;
949
+ min-width: 0;
950
+ justify-content: flex-end;
951
+ }
952
+ .member-table :deep(.member-role-chip) {
953
+ flex-shrink: 0;
954
+ }
955
+ }
944
956
  .member-access__more,
945
957
  .member-access__scope {
946
958
  font-size: 12px;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.97.1-staging.685",
5
+ "version": "4.97.1-staging.687",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
@@ -163,7 +163,8 @@ export function inventoryControls(a?: Partial<TInventoryAccess> | null) {
163
163
  return {
164
164
  tabs: {
165
165
  stock: c.canView,
166
- mine: (c.canRequest || c.canUse) && !c.canManage,
166
+ // Anyone who may record usage gets My Stock, store admins included: the server allows it (manage implies use).
167
+ mine: c.canUse || (c.canRequest && !c.canManage),
167
168
  requests: c.canRequest || c.canApprove,
168
169
  people: c.canApprove || c.canHandle,
169
170
  reports: c.canReports || c.canApprove,