@coras-io/embed 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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @coras-io/embed
2
2
 
3
+ ## 0.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - e79ab12: Spread the details page calendar's columns across its dropdown on small screens, with the month arrows over the first and last weekday, instead of a fixed-width grid with the arrows at the dropdown's edges.
8
+
3
9
  ## 0.6.7
4
10
 
5
11
  ### Patch Changes
@@ -58,8 +58,7 @@ export default css `
58
58
 
59
59
  ol {
60
60
  display: grid;
61
- grid-template-columns: repeat(7, var(--calendar-day-size));
62
- justify-content: center;
61
+ grid-template-columns: repeat(7, minmax(var(--calendar-day-size), 1fr));
63
62
  margin: 0 auto;
64
63
  padding: 0;
65
64
 
@@ -2,4 +2,22 @@ import { css } from "lit";
2
2
  import component from "../../../styles/defaults/component.js";
3
3
  export default css `
4
4
  ${component}
5
+
6
+ /* The dropdown this calendar opens in is at least as wide as its trigger, so
7
+ on small screens the base grid's columns grow past one day cell. The header
8
+ arrows take a column each so they sit over the first and last weekday, and
9
+ the day marker takes its width from its height to stay a circle. */
10
+ .calendar {
11
+ .header button {
12
+ flex: 0 0 calc(100% / 7);
13
+ display: inline-flex;
14
+ justify-content: center;
15
+ }
16
+
17
+ ol li.day span {
18
+ width: auto;
19
+ max-width: 100%;
20
+ aspect-ratio: 1;
21
+ }
22
+ }
5
23
  `;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "engines": {
21
21
  "node": ">=22"
22
22
  },
23
- "version": "0.6.7",
23
+ "version": "0.6.8",
24
24
  "private": false,
25
25
  "homepage": "https://docs.coras.io",
26
26
  "bugs": {