diff --git a/bookmarklet.js b/bookmarklet.js index 3835581..9d421fb 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -6,7 +6,7 @@ // YouTrack: http://qoomon.myjetbrains.com/youtrack/dashboard var global = {}; - global.version = "4.3.0"; + global.version = "4.3.1"; global.issueTrackingUrl = "https://github.com/qoomon/Jira-Issue-Card-Printer"; global.isDev = document.currentScript == null; global.isProd = !global.isDev; @@ -378,10 +378,13 @@ var scaleHeight = cardMaxHeight / cardMinHeight ; var scale = Math.min(scaleWidth, scaleHeight, 1); - // scale down only - if (scale < 1) { - jQuery("html", printDocument).css("font-size", ( scaleRoot * scale ) + "cm"); - } + console.log("scaleRoot: " + scaleRoot + " scale: " + scale); + console.log("scaleWidth: " + scaleWidth + " scaleHeight: " + scaleHeight); + + + // scale + jQuery("html", printDocument).css("font-size", ( scaleRoot * scale ) + "cm"); + // size diff --git a/card.css b/card.css index 18ba7f8..e7afd60 100644 --- a/card.css +++ b/card.css @@ -73,10 +73,20 @@ body { width: 100%; padding: 0.5rem; min-width: 14.5rem; - min-height: 12.5rem; - border-color: LightGray; - border-style: dotted; - border-width: 0.03cm; + min-height: 8.65rem; + overflow: visible; +} +.card::after { + overflow: visible; + position: absolute; + top: 0rem; + left: 0rem; + content: ""; + width: calc(100% - 0.06cm); + height: calc(100% - 0.06cm); + border-color: LightGray; + border-style: dashed; + border-width: 0.06cm; } .card-content { position: relative;