diff --git a/The One Ring 2e/release-notes.md b/The One Ring 2e/release-notes.md index a5da6dd901..ff2fd167ba 100644 --- a/The One Ring 2e/release-notes.md +++ b/The One Ring 2e/release-notes.md @@ -4,6 +4,16 @@ This is a rewrite based on the early 2e (basic) and 1e edition that also include # Release History +## 02.04.00 (Build 7) + +### Sheet fixes + +- fixed common bonus dice not tied to stance anymore + +### CSS fixes + +- fixed hover info word-wrapping + ## 02.03.00 (Build 8) ### Features diff --git a/The One Ring 2e/sheet.css b/The One Ring 2e/sheet.css index 88138f007c..a44fc7e00b 100644 --- a/The One Ring 2e/sheet.css +++ b/The One Ring 2e/sheet.css @@ -243,11 +243,13 @@ import url('https://fonts.cdnfonts.com/css/aniron'); content: ""; } .charsheet .sheet-hover-info { + display: block; position: absolute; background: white; z-index: 10; padding: 20px; - width: 300px; + width: 400px; + height:fit-content; visibility: hidden; opacity: 0; box-shadow: 0 3px 15px rgba(0,0,0,.1); @@ -255,6 +257,9 @@ import url('https://fonts.cdnfonts.com/css/aniron'); text-align: left; overflow-wrap: break-word; word-break: break-word; + white-space: normal; + text-overflow: ellipsis; + overflow: visible; } .charsheet span.label:hover + .sheet-hover-info, .charsheet span.sheet-label:hover + .sheet-hover-info, @@ -384,6 +389,11 @@ import url('https://fonts.cdnfonts.com/css/aniron'); font-size: large; font-weight: bold; } + +/* needed for hover infos */ +.charsheet .sheet-strong { + font-weight: bold; +} .charsheet .bordertop{ margin: 0px 20px 0px 20px; border-top: var(--solidborder); diff --git a/The One Ring 2e/sheet.html b/The One Ring 2e/sheet.html index f869695bf0..aceca5f4c6 100644 --- a/The One Ring 2e/sheet.html +++ b/The One Ring 2e/sheet.html @@ -36,7 +36,8 @@ - + +
@@ -50,7 +51,8 @@ - + + @@ -1326,7 +1328,7 @@ } */ - modifiers = rolltype !== "custom" ? await getQuery(`?{Bonus dice|${stanceAttackBonus}}`) : 0; + modifiers = rolltype !== "custom" ? await getQuery(`?{Bonus dice|${rolltype.startsWith("combat") ? modifiers : 0}}`) : 0; // add stance attack modifier modifiers = int(modifiers); let modStr = modifiers == 0 ? "" : (modifiers > 0 ? `{{modification=+${modifiers}}}` : `{{modification=${modifiers}}}`);