Skip to content

Commit

Permalink
1.11.22
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Feb 14, 2023
1 parent 5999d46 commit 7b8ac11
Show file tree
Hide file tree
Showing 9 changed files with 123 additions and 72 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.11.22

- (Refinement) Updated the wrapping-behavior of long in-character and player names. In general more stuff should avoid reflowing.
- (System) Added experimental compatability with SWADE. Lots of stuff expected to work not-quite-right.

# 1.11.21

- (Module) Added support for Monk's Enhanced Journals.
Expand Down
8 changes: 8 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
"minimum": "4.0.0",
"verified": "4.7.1"
}
},
{
"id": "swade",
"type": "system",
"compatibility": {
"minimum": "2.2.5",
"verified": "2.2.5"
}
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion modules/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const darkThemeIncompatibleApplications = ["Tokenizer","JournalTextTinyMC
export const exclusivelyDarkApplications = ["FABattlemaps", "FADownloader"]

// prettier-ignore
export const baseThemeCoreFoundryApplications = ["ImagePopout","SceneControls", "SidebarTab", "PlayerList", "HeadsUpDisplay", "Notifications", "TokenHUD", "Sidebar","SceneNavigation"];
export const baseThemeCoreFoundryApplications = ["ImagePopout","SceneControls", "SidebarTab", "PlayerList", "HeadsUpDisplay", "Notifications", "TokenHUD", "Sidebar","SceneNavigation", "Hotbar"];
// prettier-ignore
export const baseThemePf2eApplications = ["HotbarPF2e", "EffectsPanel", "SceneDarknessAdjuster"]; // "JournalSheetPF2e",
// prettier-ignore
Expand Down
8 changes: 8 additions & 0 deletions modules/message-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,3 +553,11 @@ Hooks.on("renderChatMessage", (message, b) => {
}
}
});

// Add .spell to spells
Hooks.on("renderChatMessage", (app, html, data) => {
const item = app?.item;
if (!item) return;
if (!item.constructor.name.includes("SpellPF2e")) return;
html[0].classList.add("spell");
});
22 changes: 19 additions & 3 deletions sass/_messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@
gap: 5px;
align-items: center;

.message-metadata {
flex: 2.5;
}

.header-meta {
border-radius: 3px;
padding: 2px;
font-size: x-small;
align-self: center;
text-align: center;
text-shadow: none;
white-space: nowrap;
}

&.light-header-text {
Expand All @@ -46,9 +51,17 @@
}
}

.player-name,
.message-sender {
max-width: 160px;
text-overflow: ellipsis;
overflow: hidden;
}

.portrait-and-name {
flex-grow: 1;
display: flex;
flex-basis: 100px;
gap: 5px;

.portrait-wrapper {
Expand Down Expand Up @@ -122,7 +135,7 @@
z-index: 1;
position: absolute;
top: 0px;
left: 2px;
left: 2.4px;
clip-path: polygon(45% 0%, 50% 100%, 100% 100%, 100% 4%);
color: gray;
}
Expand Down Expand Up @@ -182,6 +195,10 @@
/* Chat card */
/* ----------------------------------------- */

.dorako-ui.message.chat-message.spell {
padding-bottom: 0px;
}

// Chat messages can be popped out, .message is too general and applies to stuff in modules
.dorako-ui.message.chat-message {
@include sheet;
Expand Down Expand Up @@ -362,8 +379,7 @@
border-image-source: var(--ornamentation);
border-image-width: 14px;
border-style: double;
padding-left: 8px;
padding-right: 8px;
padding: 3px 10px;
font-weight: 500;
margin: 0px;

Expand Down
2 changes: 1 addition & 1 deletion sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$transitionTime: 0.15s;
transition: text-shadow $transitionTime ease-in-out, background-color $transitionTime ease-in-out,
border $transitionTime ease-in-out, color $transitionTime ease-in-out, box-shadow $transitionTime ease-in-out,
backdrop-filter $transitionTime ease-in-out;
backdrop-filter $transitionTime ease-in-out, border-radius $transitionTime;
}

@mixin gold-border {
Expand Down
82 changes: 48 additions & 34 deletions styles/dorako-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion styles/dorako-ui.css.map

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions styles/module-support.css

Large diffs are not rendered by default.

0 comments on commit 7b8ac11

Please sign in to comment.