From 4b97bde6d9fcf53ba08931d057fd50f81f75e92b Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 25 Jun 2023 14:33:39 +0200 Subject: [PATCH] feat: organize checks in columns --- scss/components/actor/_actor_sheet.scss | 2 +- scss/components/actor/_checks.scss | 2 ++ src/apps/actor/base-sheet.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scss/components/actor/_actor_sheet.scss b/scss/components/actor/_actor_sheet.scss index 3be87d61..b7982577 100644 --- a/scss/components/actor/_actor_sheet.scss +++ b/scss/components/actor/_actor_sheet.scss @@ -5,6 +5,6 @@ */ .ds4-actor-sheet { - min-height: 635px; + min-height: 645px; min-width: 650px; } diff --git a/scss/components/actor/_checks.scss b/scss/components/actor/_checks.scss index 51f6fe52..dc8fcb30 100644 --- a/scss/components/actor/_checks.scss +++ b/scss/components/actor/_checks.scss @@ -7,7 +7,9 @@ .ds4-checks { column-gap: 2em; display: grid; + grid-auto-flow: column; grid-template-columns: 1fr 1fr 1fr; + grid-template-rows: repeat(10, 1fr); row-gap: 0.25em; white-space: nowrap; } diff --git a/src/apps/actor/base-sheet.js b/src/apps/actor/base-sheet.js index 0ca15542..d600f67f 100644 --- a/src/apps/actor/base-sheet.js +++ b/src/apps/actor/base-sheet.js @@ -21,7 +21,7 @@ export class DS4ActorSheet extends ActorSheet { static get defaultOptions() { return foundry.utils.mergeObject(super.defaultOptions, { classes: ["sheet", "ds4-actor-sheet"], - height: 635, + height: 645, scrollY: [".ds4-sheet-body"], tabs: [{ navSelector: ".ds4-sheet-tab-nav", contentSelector: ".ds4-sheet-body", initial: "values" }], dragDrop: [