reviw 0.9.1 → 0.9.2

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.
Files changed (2) hide show
  1. package/cli.cjs +9 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1978,15 +1978,15 @@ function htmlTemplate(dataRows, cols, title, mode, previewHtml) {
1978
1978
  transform: scale(1.04);
1979
1979
  }
1980
1980
  .image-container {
1981
- max-width: 90vw;
1982
- max-height: 90vh;
1981
+ width: 90vw;
1982
+ height: 90vh;
1983
1983
  display: flex;
1984
1984
  justify-content: center;
1985
1985
  align-items: center;
1986
1986
  }
1987
1987
  .image-container img {
1988
- max-width: 100%;
1989
- max-height: 90vh;
1988
+ width: 100%;
1989
+ height: 100%;
1990
1990
  object-fit: contain;
1991
1991
  border-radius: 8px;
1992
1992
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
@@ -3640,9 +3640,11 @@ function htmlTemplate(dataRows, cols, title, mode, previewHtml) {
3640
3640
 
3641
3641
  imageContainer.innerHTML = '';
3642
3642
  const clonedImg = img.cloneNode(true);
3643
- clonedImg.style.maxWidth = '90vw';
3644
- clonedImg.style.maxHeight = '90vh';
3645
- clonedImg.style.objectFit = 'contain';
3643
+ // CSSで制御するためインラインスタイルはリセット
3644
+ clonedImg.style.width = '';
3645
+ clonedImg.style.height = '';
3646
+ clonedImg.style.maxWidth = '';
3647
+ clonedImg.style.maxHeight = '';
3646
3648
  clonedImg.style.cursor = 'default';
3647
3649
  imageContainer.appendChild(clonedImg);
3648
3650
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reviw",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Lightweight file reviewer with in-browser comments for CSV, TSV, Markdown, and Git diffs.",
5
5
  "type": "module",
6
6
  "bin": {