diff --git a/Journal.js b/Journal.js
index 22bbbe43e..1c0cf7bbe 100644
--- a/Journal.js
+++ b/Journal.js
@@ -1090,6 +1090,18 @@ class JournalManager{
});
visibility_container.append(popup_btn);
+
+ let force_close_popup_btn=$("")
+
+ force_close_popup_btn.click(function(){
+ window.MB.sendMessage('custom/myVTT/note',{
+ id: id,
+ note:self.notes[id],
+ popup: false,
+ });
+ });
+
+ visibility_container.append(force_close_popup_btn);
let edit_btn=$("");
edit_btn.click(function(){
diff --git a/MessageBroker.js b/MessageBroker.js
index 1c44dc12f..cc3c3c3c0 100644
--- a/MessageBroker.js
+++ b/MessageBroker.js
@@ -790,10 +790,13 @@ class MessageBroker {
if(msg.data.id in window.TOKEN_OBJECTS){
window.TOKEN_OBJECTS[msg.data.id].place();
- }
- if(msg.data.popup)
+ }
+ const openNote = $(`.note[data-id='${msg.data.id}']`);
+ if(msg.data.popup){
window.JOURNAL.display_note(msg.data.id);
- const openNote = $(`.note[data-id='${msg.data.id}']`);
+ }else {
+ openNote.remove();
+ }
if(window.JOURNAL.notes[msg.data.id].abilityTracker && openNote.length>0){
diff --git a/abovevtt.css b/abovevtt.css
index 1bd1925cf..461314fab 100644
--- a/abovevtt.css
+++ b/abovevtt.css
@@ -3970,7 +3970,7 @@ audio::-webkit-media-controls-time-remaining-display{
border: 1px solid #dddddd;
background: #e9e9e9;
padding: 5px;
- width: 370px;
+ min-width: 370px;
margin-right: auto;
}
.visibility-container button {