diff --git a/CardExample.png b/CardExample.png new file mode 100644 index 0000000..60c432b Binary files /dev/null and b/CardExample.png differ diff --git a/bookmarklet.js b/bookmarklet.js index 245c6df..55fcdf5 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -6,7 +6,7 @@ // YouTrack: http://qoomon.myjetbrains.com/youtrack/dashboard var global = {}; - global.version = "4.3.3"; + global.version = "4.3.5"; global.issueTrackingUrl = "https://github.com/qoomon/Jira-Issue-Card-Printer"; global.isDev = document.currentScript == null; global.isProd = !global.isDev; @@ -165,7 +165,7 @@ function loadSettings(){ var settings = global.settings = global.settings || {}; - settings.scale = parseFloat(readCookie("card_printer_scale")) || 1.0; + settings.scale = parseFloat(readCookie("card_printer_scale")) || 0.0; settings.rowCount = parseInt(readCookie("card_printer_row_count2")) || 2; settings.colCount = parseInt(readCookie("card_printer_column_count")) || 1; @@ -344,7 +344,7 @@ var style = document.createElement('style'); style.id = 'styleSingleCardPage'; style.type = 'text/css'; - style.innerHTML = ".card { page-break-after: always; float: none; }" + style.innerHTML = ".card { page-break-after: always; float: none; margin-bottom: 0.5cm}" jQuery("head", printDocument).append(style); } } diff --git a/card.css b/card.css index e7afd60..bf7295a 100644 --- a/card.css +++ b/card.css @@ -14,6 +14,7 @@ body { margin: 0rem; max-height: 100%; max-width: 100%; + overflow: visible; } .badge, .shadow { border-style: solid; @@ -77,16 +78,16 @@ body { 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; + overflow: visible; + position: absolute; + top: -0.015rem; + left: -0.015rem; + content: ""; + width: calc(100% - 0.015cm); + height: calc(100% - 0.015cm); + border-color: LightGray; + border-style: dashed; + border-width: 0.03cm; } .card-content { position: relative; @@ -244,7 +245,7 @@ body { height: 2.2rem; border-radius: 50%; background-color: WHITESMOKE; - //background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Person.png); + background-image: url(https://www.colourbox.com/preview/10714847-evil-christmas-elf.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; @@ -274,13 +275,12 @@ body { line-height: 0.55rem; } .issue-epic-id { - font-size: 0.5rem; + font-size: 0.6rem; font-weight: bold; max-width: 1rem; } .issue-epic-name { - margin-left: 0.1rem; - font-size: 0.6rem; + font-size: 0.55rem; font-weight: bold; } .issue-due-date-box { @@ -326,5 +326,6 @@ body { } .card { page-break-inside: avoid; + margin: 0.0mm; } } diff --git a/card.html b/card.html index 9547632..e1adce9 100644 --- a/card.html +++ b/card.html @@ -24,7 +24,7 @@