From 085d6d45c678ff1cba680252a768b904531b6726 Mon Sep 17 00:00:00 2001 From: Dorako Date: Sun, 6 Mar 2022 17:10:54 +0100 Subject: [PATCH] 1.3.8 --- CHANGELOG.md | 2 ++ module.json | 4 ++-- scripts/dorako-ui.js | 1 - styles/chat.css | 32 +++++++++++++++++++++++++++----- 4 files changed, 31 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 761c80b..4089cb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# 1.3.8 +Added support for the new damage buttons on attack cards. Fixed issue causing multiple elements in chat messages to create newlines. # 1.3.7 Fixed styling of worn-related buttons and crafting screen on dark mode pc sheets. Added minor support for Navigation Presets module. # 1.3.6 diff --git a/module.json b/module.json index 2d9ce95..aab01a7 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "description": "Overhauls the Foundry UI and several modules.", "url": "https://github.com/Dorako/pf2e-dorako-ui", "author": "Dorako", - "version": "1.3.7", + "version": "1.3.8", "minimumCoreVersion": "9", "compatibleCoreVersion": "9", "system": ["pf2e"], @@ -14,6 +14,6 @@ "templates": [ "templates/*" ], - "download": "https://github.com/Dorako/pf2e-dorako-ui/archive/refs/tags/v1.3.7.zip", + "download": "https://github.com/Dorako/pf2e-dorako-ui/archive/refs/tags/v1.3.8.zip", "manifest": "https://github.com/Dorako/pf2e-dorako-ui/raw/main/module.json" } \ No newline at end of file diff --git a/scripts/dorako-ui.js b/scripts/dorako-ui.js index 29935c0..188414b 100644 --- a/scripts/dorako-ui.js +++ b/scripts/dorako-ui.js @@ -348,7 +348,6 @@ Hooks.once('init', async function () { } }); - //todo Token, Body, None game.settings.register("pf2e-dorako-ui", "insertSpeakerImage", { name: "Add chat portrait?", hint: "Adds the image of the speaker to the chat card.", diff --git a/styles/chat.css b/styles/chat.css index a2b63fd..d52f950 100644 --- a/styles/chat.css +++ b/styles/chat.css @@ -706,7 +706,11 @@ message-content .chat-damage-buttons button { width: 12px; } -.message-content .chat-damage-buttons.includes-fumble span.plus { +.chat-message>.message-content .chat-damage-buttons button>.transparent-half { + display: none; +} + +.chat-message>.message-content .chat-damage-buttons.includes-fumble span.plus { left: unset; } @@ -839,11 +843,11 @@ message-content .chat-damage-buttons button { gap: 5px; } -.chat-message .message-content { +/* .chat-message .message-content { display: flex; flex-direction: column; gap: 5px; -} +} */ button.half-damage .fa-heart-broken::after { content:"\f7a9"; @@ -989,14 +993,14 @@ button.half-damage .fa-heart-broken::after { [data-visibility]:is(div,em,h4,p,span,strong):not([data-visibility=all])[data-visibility=owner] { background:none; background-color: #1f1fa830; - outline: 1px dashed #4646ffa0; + outline: 1px dashed #a6a6ffd0; } [data-visibility]:is(div,em,h4,p,span,strong):not([data-visibility=all])[data-visibility=gm] { background:none; background-color: hsla(0,0%,50%,0.25); - outline: 1px dotted black; + /* outline: 1px dotted black; */ } [data-visibility]:is(div,em,h4,p,span,strong):not([data-visibility=all])[data-visibility=owner] [data-visibility=owner] { @@ -1515,4 +1519,22 @@ div#scrollToBottom:hover { .chat-message .message-header .message-metadata { align-content: center; +} + +.chat-message>.message-content .message-buttons { + gap: 3px; +} + +.message button { + line-height: 20px; + border: 1px solid var(--alt); + background: hsla(0, 0%, 20%,0.1); +} + +.dice-roll .dice-result { + margin-top: 5px; +} + +h4 .action { + margin: 0px; } \ No newline at end of file