@commonpub/layer 0.73.2 → 0.73.3
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.
|
@@ -65,6 +65,11 @@ onMounted(() => {
|
|
|
65
65
|
resizeObserver = new ResizeObserver(() => measure());
|
|
66
66
|
resizeObserver.observe(containerEl.value);
|
|
67
67
|
}
|
|
68
|
+
// Web fonts widen the ITEMS without resizing the container, so the
|
|
69
|
+
// ResizeObserver alone misses the post-FOUT width change.
|
|
70
|
+
if (typeof document !== 'undefined' && document.fonts?.ready) {
|
|
71
|
+
document.fonts.ready.then(() => measure()).catch(() => {});
|
|
72
|
+
}
|
|
68
73
|
});
|
|
69
74
|
onUnmounted(() => resizeObserver?.disconnect());
|
|
70
75
|
watch(shownItems, () => nextTick(measure));
|
package/layouts/default.vue
CHANGED
|
@@ -385,7 +385,15 @@ const userUsername = computed(() => user.value?.username ?? '');
|
|
|
385
385
|
:deep(.cpub-mobile-link--indent) { padding-left: 36px; }
|
|
386
386
|
:deep(.cpub-mobile-link--disabled) { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
/* The spacer takes NO share of the free space — the nav does (flex:1). This
|
|
389
|
+
is load-bearing for the priority nav: its measurement reads the nav's
|
|
390
|
+
allocated width, and a flex-basis:auto item that SPLITS slack with a
|
|
391
|
+
spacer gets an allocation that depends on its own content — collapsing
|
|
392
|
+
links shrinks the nav, which re-justifies the collapse (a ratchet: links
|
|
393
|
+
hidden beside a huge empty gap). With the spacer inert, the nav's
|
|
394
|
+
allocation is `row minus everything else`, independent of what's
|
|
395
|
+
collapsed, so the measurement is stable in both directions. */
|
|
396
|
+
.cpub-topbar-spacer { flex: 0 0 0; }
|
|
389
397
|
.cpub-topbar-actions { display: flex; align-items: center; gap: 6px; }
|
|
390
398
|
|
|
391
399
|
.cpub-search-btn { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--surface2); border: var(--border-width-default) solid var(--border2); color: var(--text-dim); font-size: 12px; min-width: 180px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; cursor: text; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"zod": "^4.3.6",
|
|
56
56
|
"@commonpub/auth": "0.8.0",
|
|
57
57
|
"@commonpub/docs": "0.6.3",
|
|
58
|
-
"@commonpub/learning": "0.5.2",
|
|
59
58
|
"@commonpub/config": "0.22.1",
|
|
60
59
|
"@commonpub/editor": "0.7.11",
|
|
60
|
+
"@commonpub/explainer": "0.7.15",
|
|
61
|
+
"@commonpub/learning": "0.5.2",
|
|
61
62
|
"@commonpub/protocol": "0.13.0",
|
|
62
63
|
"@commonpub/schema": "0.40.1",
|
|
63
|
-
"@commonpub/theme-studio": "0.6.1",
|
|
64
64
|
"@commonpub/server": "2.84.1",
|
|
65
|
-
"@commonpub/
|
|
66
|
-
"@commonpub/
|
|
65
|
+
"@commonpub/theme-studio": "0.6.1",
|
|
66
|
+
"@commonpub/ui": "0.13.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@testing-library/jest-dom": "^6.9.1",
|