@commonpub/layer 0.86.0 → 0.86.1

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.
@@ -56,17 +56,20 @@ const size = computed<EmbedSize>(() => {
56
56
  .cpub-embed-label i { color: var(--accent); }
57
57
 
58
58
  .cpub-embed-wrap {
59
- position: relative;
60
- padding-bottom: 56.25%;
61
- height: 0;
59
+ display: block;
60
+ line-height: 0;
62
61
  border-radius: 0;
63
62
  }
64
63
 
64
+ /* 16:9 via aspect-ratio so a prose `iframe { height: auto }` rule cooperates with
65
+ the ratio rather than collapsing the iframe (see BlockVideoView). */
65
66
  .cpub-embed-iframe {
66
- position: absolute;
67
- top: 0;
68
- left: 0;
67
+ display: block;
69
68
  width: 100%;
70
- height: 100%;
69
+ aspect-ratio: 16 / 9;
70
+ height: auto;
71
+ border: 0;
72
+ background: var(--text);
73
+ border-radius: 0;
71
74
  }
72
75
  </style>
@@ -78,18 +78,22 @@ const platform = computed(() => {
78
78
  .cpub-video-label i { color: var(--accent); }
79
79
 
80
80
  .cpub-video-wrap {
81
- position: relative;
82
- padding-bottom: 56.25%;
83
- height: 0;
84
- background: var(--text);
81
+ display: block;
82
+ line-height: 0;
85
83
  border-radius: 0;
86
84
  }
87
85
 
86
+ /* 16:9 via aspect-ratio on the iframe (not the legacy padding-bottom hack), so a
87
+ prose `iframe { height: auto }` rule (ProjectView/ArticleView/ExplainerView)
88
+ COOPERATES with the ratio instead of collapsing the iframe inside a 0-height
89
+ wrap and leaving black space below it. */
88
90
  .cpub-video-iframe {
89
- position: absolute;
90
- top: 0;
91
- left: 0;
91
+ display: block;
92
92
  width: 100%;
93
- height: 100%;
93
+ aspect-ratio: 16 / 9;
94
+ height: auto;
95
+ border: 0;
96
+ background: var(--text);
97
+ border-radius: 0;
94
98
  }
95
99
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.86.0",
3
+ "version": "0.86.1",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -55,16 +55,16 @@
55
55
  "vue-router": "^4.3.0",
56
56
  "zod": "^4.3.6",
57
57
  "@commonpub/auth": "0.8.0",
58
+ "@commonpub/config": "0.23.0",
59
+ "@commonpub/docs": "0.6.3",
60
+ "@commonpub/protocol": "0.14.0",
58
61
  "@commonpub/learning": "0.5.2",
59
62
  "@commonpub/explainer": "0.8.0",
60
- "@commonpub/schema": "0.48.0",
61
- "@commonpub/server": "2.92.0",
62
- "@commonpub/protocol": "0.14.0",
63
63
  "@commonpub/theme-studio": "0.6.1",
64
- "@commonpub/config": "0.23.0",
65
- "@commonpub/ui": "0.13.1",
64
+ "@commonpub/server": "2.92.0",
66
65
  "@commonpub/editor": "0.9.0",
67
- "@commonpub/docs": "0.6.3"
66
+ "@commonpub/ui": "0.13.1",
67
+ "@commonpub/schema": "0.48.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@testing-library/jest-dom": "^6.9.1",