@fasl-work/caos-app-shell 0.6.7 → 0.6.8

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/dist/index.js CHANGED
@@ -324,6 +324,7 @@ function AppShell({ config, children }) {
324
324
  {
325
325
  to: r.path,
326
326
  end: r.path === "/",
327
+ onFocus: (event) => event.currentTarget.scrollIntoView({ block: "nearest", inline: "nearest" }),
327
328
  className: ({ isActive }) => isActive ? "nav-link active" : "nav-link",
328
329
  children: lang === "es" ? r.es : r.en
329
330
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fasl-work/caos-app-shell",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Shared web-app shell + content primitives + design system for the CAOS / Faena public apps (ADR-0016).",
5
5
  "license": "MIT",
6
6
  "author": "Felipe Santibáñez-Leal",
package/styles.css CHANGED
@@ -110,7 +110,13 @@ code, kbd { font-family: var(--font-mono); }
110
110
  /* ── Misc ── */
111
111
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
112
112
  :where(a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
113
- @media (max-width: 760px) { .main-nav { display: none; } }
113
+ @media (max-width: 760px) {
114
+ .header-inner { height: auto; min-height: 56px; flex-wrap: wrap; gap: 0 0.5rem; padding: 4px 1rem; }
115
+ .header-actions { gap: 0; }
116
+ .header-actions .icon-btn { padding: 0.35rem; }
117
+ .main-nav { order: 3; flex: 0 0 100%; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 3px 0; scrollbar-width: thin; }
118
+ .main-nav .nav-link { flex: none; padding: 0.3rem 0.6rem; font-size: 0.8rem; }
119
+ }
114
120
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
115
121
 
116
122
  /* ── Prose / content pages ── (fill the page-body width with grids/figures/sub-tab rails, not a narrow column) */