@commonpub/layer 0.21.16 → 0.21.17
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/components/views/ProjectView.vue +13 -13
- package/package.json +7 -7
|
@@ -432,7 +432,7 @@ async function handleBuild(): Promise<void> {
|
|
|
432
432
|
|
|
433
433
|
<!-- MAIN CONTENT GRID -->
|
|
434
434
|
<div class="cpub-page-outer">
|
|
435
|
-
<div class="cpub-
|
|
435
|
+
<div class="cpub-project-grid" :class="{ 'cpub-has-toc': tocEntries.length > 0 && activeTab === 'overview', 'cpub-has-sidebar': hasSidebar }">
|
|
436
436
|
<!-- LEFT: TABLE OF CONTENTS -->
|
|
437
437
|
<nav v-if="tocEntries.length > 0 && activeTab === 'overview'" class="cpub-toc-col">
|
|
438
438
|
<div class="cpub-toc">
|
|
@@ -964,20 +964,20 @@ async function handleBuild(): Promise<void> {
|
|
|
964
964
|
The sidebar 260px column is reserved ONLY when there's sidebar
|
|
965
965
|
content to put in it (BOM/parts OR community hub) — otherwise the
|
|
966
966
|
content column gets the freed width. */
|
|
967
|
-
.cpub-
|
|
967
|
+
.cpub-project-grid {
|
|
968
968
|
display: grid;
|
|
969
969
|
grid-template-columns: minmax(0, 1fr);
|
|
970
970
|
gap: clamp(16px, 3vw, 32px);
|
|
971
971
|
align-items: start;
|
|
972
972
|
padding-bottom: 64px;
|
|
973
973
|
}
|
|
974
|
-
.cpub-
|
|
974
|
+
.cpub-project-grid.cpub-has-toc {
|
|
975
975
|
grid-template-columns: 200px minmax(0, 1fr);
|
|
976
976
|
}
|
|
977
|
-
.cpub-
|
|
977
|
+
.cpub-project-grid.cpub-has-sidebar {
|
|
978
978
|
grid-template-columns: minmax(0, 1fr) 260px;
|
|
979
979
|
}
|
|
980
|
-
.cpub-
|
|
980
|
+
.cpub-project-grid.cpub-has-toc.cpub-has-sidebar {
|
|
981
981
|
grid-template-columns: 200px minmax(0, 1fr) 260px;
|
|
982
982
|
}
|
|
983
983
|
|
|
@@ -1592,10 +1592,10 @@ async function handleBuild(): Promise<void> {
|
|
|
1592
1592
|
|
|
1593
1593
|
/* 1200px: Drop left TOC column, keep sidebar if it exists */
|
|
1594
1594
|
@media (max-width: 1200px) {
|
|
1595
|
-
.cpub-
|
|
1595
|
+
.cpub-project-grid.cpub-has-toc {
|
|
1596
1596
|
grid-template-columns: minmax(0, 1fr);
|
|
1597
1597
|
}
|
|
1598
|
-
.cpub-
|
|
1598
|
+
.cpub-project-grid.cpub-has-toc.cpub-has-sidebar {
|
|
1599
1599
|
grid-template-columns: minmax(0, 1fr) 260px;
|
|
1600
1600
|
}
|
|
1601
1601
|
.cpub-toc-col { display: none; }
|
|
@@ -1603,10 +1603,10 @@ async function handleBuild(): Promise<void> {
|
|
|
1603
1603
|
|
|
1604
1604
|
/* 1024px: Single column — sidebar stacks below content */
|
|
1605
1605
|
@media (max-width: 1024px) {
|
|
1606
|
-
.cpub-
|
|
1607
|
-
.cpub-
|
|
1608
|
-
.cpub-
|
|
1609
|
-
.cpub-
|
|
1606
|
+
.cpub-project-grid,
|
|
1607
|
+
.cpub-project-grid.cpub-has-toc,
|
|
1608
|
+
.cpub-project-grid.cpub-has-sidebar,
|
|
1609
|
+
.cpub-project-grid.cpub-has-toc.cpub-has-sidebar {
|
|
1610
1610
|
grid-template-columns: minmax(0, 1fr);
|
|
1611
1611
|
}
|
|
1612
1612
|
.cpub-sidebar { position: static; }
|
|
@@ -1627,7 +1627,7 @@ async function handleBuild(): Promise<void> {
|
|
|
1627
1627
|
.cpub-sidebar { position: static; }
|
|
1628
1628
|
.cpub-author-tags .cpub-author-tag { padding: 2px 8px; font-size: 10px; }
|
|
1629
1629
|
.cpub-author-row { flex-wrap: wrap; gap: 8px; }
|
|
1630
|
-
.cpub-
|
|
1630
|
+
.cpub-project-grid { padding-bottom: 32px; }
|
|
1631
1631
|
}
|
|
1632
1632
|
|
|
1633
1633
|
/* 480px: Phone — compact everything */
|
|
@@ -1641,6 +1641,6 @@ async function handleBuild(): Promise<void> {
|
|
|
1641
1641
|
.cpub-engage-btn { font-size: 11px; padding: 8px 10px; }
|
|
1642
1642
|
.cpub-author-detail { font-size: 10px; }
|
|
1643
1643
|
.cpub-toc-item { padding: 6px 0 6px 10px; font-size: 11px; min-height: 36px; display: flex; align-items: center; }
|
|
1644
|
-
.cpub-
|
|
1644
|
+
.cpub-project-grid { gap: 12px; padding-bottom: 24px; }
|
|
1645
1645
|
}
|
|
1646
1646
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
"vue-router": "^4.3.0",
|
|
52
52
|
"zod": "^4.3.6",
|
|
53
53
|
"@commonpub/auth": "0.6.0",
|
|
54
|
+
"@commonpub/learning": "0.5.2",
|
|
55
|
+
"@commonpub/config": "0.13.0",
|
|
56
|
+
"@commonpub/explainer": "0.7.15",
|
|
54
57
|
"@commonpub/docs": "0.6.3",
|
|
55
58
|
"@commonpub/editor": "0.7.10",
|
|
56
|
-
"@commonpub/explainer": "0.7.15",
|
|
57
|
-
"@commonpub/learning": "0.5.2",
|
|
58
|
-
"@commonpub/protocol": "0.12.0",
|
|
59
|
-
"@commonpub/server": "2.55.0",
|
|
60
|
-
"@commonpub/ui": "0.8.5",
|
|
61
59
|
"@commonpub/schema": "0.16.0",
|
|
62
|
-
"@commonpub/
|
|
60
|
+
"@commonpub/server": "2.55.0",
|
|
61
|
+
"@commonpub/protocol": "0.12.0",
|
|
62
|
+
"@commonpub/ui": "0.8.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@testing-library/jest-dom": "^6.9.1",
|