@iyulab/components 1.42.0 → 1.42.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.42.1] - 2026-09-17
4
+
5
+ ### Fixed
6
+
7
+ - **`u-panel` no longer adds a trailing blank page when printed.** Its `overflow: auto` makes it a
8
+ scroll container, which keeps the bottom margin of its last block inside the panel, so the panel
9
+ grew by that margin; content ending just short of a page boundary then spilled onto a page
10
+ holding only the margin. In print media the panel now uses `overflow: visible`, letting the
11
+ margin collapse past it and be truncated at the page break. Screen behavior is unchanged.
12
+
3
13
  ## [1.42.0] - 2026-09-17
4
14
 
5
15
  ### Fixed
@@ -9,6 +9,18 @@ var styles = css`
9
9
  pointer-events: none;
10
10
  opacity: 0.5;
11
11
  }
12
+
13
+ /*
14
+ * 인쇄 - 종이에는 스크롤이 없다. overflow auto 는 독립 서식 문맥이라 패널 안 마지막 블록의
15
+ * 아래 여백을 패널 안에 가두고 그만큼 패널이 자란다. 내용 끝이 쪽 경계에서 그 여백 이내에
16
+ * 있으면 여백만 담긴 빈 꼬리 쪽이 찍힌다. 인쇄에서는 넘침을 흐름에 돌려 여백이 접히게 한다.
17
+ * 높이는 이 패널이 소유하지 않는다 - 소비자가 준 고정 높이는 소비자가 화면 매체로 한정한다.
18
+ */
19
+ @media print {
20
+ :host {
21
+ overflow: visible;
22
+ }
23
+ }
12
24
  `;
13
25
  //#endregion
14
26
  export { styles };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/components",
3
3
  "description": "web-components library based on lit-element made by iyulab",
4
- "version": "1.42.0",
4
+ "version": "1.42.1",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",
@@ -38,6 +38,11 @@ General-purpose content panel. Matches a tab or tree node when using `value`.
38
38
  <u-panel>…</u-panel> <!-- grows with its content -->
39
39
  ```
40
40
 
41
+ In print media the panel is not a scroll container (`overflow: visible`) — paper does not
42
+ scroll, and a scroll container keeps the bottom margin of its last block inside itself, which
43
+ can push a page that holds only that margin. A height you give the panel is yours to scope to
44
+ screen media (`@media screen { … }`); in print, a fixed height would let content overflow it.
45
+
41
46
  ## Slots
42
47
 
43
48
  | Name | Description |