From b070a5992ce18533c268d197660c096d14e01d88 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 29 Aug 2024 11:19:14 -0600 Subject: [PATCH] Better sizing for groupbox / details --- api/js/etemplate/Layout/Et2Details/Et2Details.ts | 1 + api/js/etemplate/Layout/Et2Groupbox/Et2Groupbox.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Layout/Et2Details/Et2Details.ts b/api/js/etemplate/Layout/Et2Details/Et2Details.ts index 41bb76898c..648dd6eb3c 100644 --- a/api/js/etemplate/Layout/Et2Details/Et2Details.ts +++ b/api/js/etemplate/Layout/Et2Details/Et2Details.ts @@ -52,6 +52,7 @@ export class Et2Details extends Et2Widget(SlDetails) .details { border: var(--sl-panel-border-width) solid var(--sl-panel-border-color); + margin: 0px; } .details.hoist { position: relative; diff --git a/api/js/etemplate/Layout/Et2Groupbox/Et2Groupbox.ts b/api/js/etemplate/Layout/Et2Groupbox/Et2Groupbox.ts index 66e9384b47..653c312100 100644 --- a/api/js/etemplate/Layout/Et2Groupbox/Et2Groupbox.ts +++ b/api/js/etemplate/Layout/Et2Groupbox/Et2Groupbox.ts @@ -50,7 +50,7 @@ export class Et2Groupbox extends Et2Details */ .details__body { - height: calc(100% - 3em - var(--sl-border-radius-medium)) !important; + height: calc(100% - 2em - var(--sl-border-radius-medium)) !important; position: relative; } @@ -62,7 +62,7 @@ export class Et2Groupbox extends Et2Details .details__content { overflow: hidden; overflow-y: auto; - height: 100%; + height: calc(100% - 2 * var(--sl-spacing-medium)); } /* end workaround */ @@ -89,6 +89,7 @@ export class Et2Groupbox extends Et2Details details.summaryOnTop { padding-top: .5rem; margin-top: .5rem; + height: auto; } `, ];