Skip to content

Commit 95fbb82

Browse files
Lionel ZUBERmattraykowski
Lionel ZUBER
authored andcommitted
FIX - Compatibility V9
1 parent 9a50755 commit 95fbb82

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

css/svnsea2e.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ input[type=range]::-webkit-slider-thumb {
609609
}
610610

611611
.svnsea2e .tabs .item {
612+
flex: 1;
612613
font-weight: bold;
613614
text-transform: uppercase;
614615
border-top: 2px solid #091B27;

module/actor/sheets/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ export default class ActorSheetSS2e extends ActorSheet {
416416
*/
417417
async _onItemSummary(event) {
418418
event.preventDefault();
419-
const li = event.currentTarget.closest('.item');
420-
const item = this.actor.items.get(li.dataset.itemId);
419+
const li = $(event.currentTarget).closest('.item');
420+
const item = this.actor.items.get(li.data('itemId'));
421421
const chatData = item.getChatData({ secrets: this.actor.owner });
422422

423423
// Toggle summary

module/svnsea2e.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Hooks.once('init', async function () {
5858
CONFIG.SVNSEA2E.natTypes.gisles = 'SVNSEA2E.RegionGlamourIsles';
5959

6060
// Define custom Entity classes
61-
CONFIG.Actor.entityClass = SvnSea2EActor;
62-
CONFIG.Item.entityClass = SvnSea2EItem;
61+
CONFIG.Actor.documentClass = SvnSea2EActor;
62+
CONFIG.Item.documentClass = SvnSea2EItem;
6363

6464
// Register System Settings
6565
registerSystemSettings();

scss/components/_tabs.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99

1010
.item {
11+
flex: 1;
1112
font-weight: bold;
1213
text-transform: uppercase;
1314
border-top: $brd-s-md-dk;

0 commit comments

Comments
 (0)