From a48fedd937527398c2fa6dc5e3f0cd4fdc165796 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Mon, 8 Mar 2021 09:58:26 +0100 Subject: [PATCH] Fix horizontal overflows in actor sheets --- src/ds4.scss | 1 + src/module/actor/sheets/actor-sheet.ts | 2 +- src/scss/components/_actor_sheet.scss | 4 ++++ src/scss/components/_item_list.scss | 3 ++- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/scss/components/_actor_sheet.scss diff --git a/src/ds4.scss b/src/ds4.scss index 9ee0c00f..5d5e3eb2 100644 --- a/src/ds4.scss +++ b/src/ds4.scss @@ -6,6 +6,7 @@ @include meta.load-css("scss/global/fonts"); @include meta.load-css("scss/global/grid"); @include meta.load-css("scss/global/window"); +@include meta.load-css("scss/components/actor_sheet"); /* Styles limited to ds4 sheets */ .ds4 { diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index e75f1be7..470f33ea 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -15,7 +15,7 @@ export class DS4ActorSheet extends ActorSheet> { const superDefaultOptions = super.defaultOptions; return mergeObject(superDefaultOptions, { classes: ["ds4", "sheet", "actor"], - width: 745, + width: 650, height: 600, scrollY: [ ".inventory", diff --git a/src/scss/components/_actor_sheet.scss b/src/scss/components/_actor_sheet.scss new file mode 100644 index 00000000..55fbf56c --- /dev/null +++ b/src/scss/components/_actor_sheet.scss @@ -0,0 +1,4 @@ +.ds4.sheet.actor { + min-width: 650px; + min-height: 500px; +} diff --git a/src/scss/components/_item_list.scss b/src/scss/components/_item_list.scss index dfa69c5c..b4d2edab 100644 --- a/src/scss/components/_item_list.scss +++ b/src/scss/components/_item_list.scss @@ -53,7 +53,8 @@ height: $row-height; line-height: $row-height; white-space: nowrap; - overflow-y: hidden; + overflow: hidden; + text-overflow: ellipsis; } }