mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Get Details / Groupbox to take all allowed vertical space and scroll internally if contents are too large
This commit is contained in:
parent
986e83750c
commit
57f8bc0a99
@ -54,6 +54,14 @@ export class Et2Details extends Et2Widget(SlDetails)
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/*
|
||||
.details .details__body {
|
||||
height: calc(100% - 2em - 2 * var(--sl-spacing-medium));
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
*/
|
||||
.details.hoist .details__body {
|
||||
position: absolute;
|
||||
z-index: var(--sl-z-index-drawer);
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
import {Et2Details} from "../Et2Details/Et2Details";
|
||||
import {css, PropertyValues, html} from "lit";
|
||||
import {css, PropertyValues} from "lit";
|
||||
import shoelace from "../../Styles/shoelace";
|
||||
import {property} from "lit/decorators/property.js";
|
||||
import {customElement} from "lit/decorators/custom-element.js";
|
||||
@ -31,16 +31,42 @@ export class Et2Groupbox extends Et2Details
|
||||
...super.styles,
|
||||
shoelace,
|
||||
css`
|
||||
:host {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
slot[name="collapse-icon"], slot[name="expand-icon"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
details {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
margin: 2px;
|
||||
height: calc(100% - .5rem);
|
||||
}
|
||||
|
||||
/* work around details not respecting flex
|
||||
height is 100% - header - border radius
|
||||
*/
|
||||
|
||||
.details__body {
|
||||
height: calc(100% - 3em - var(--sl-border-radius-medium)) !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.summaryOnTop .details__body {
|
||||
height: 100% !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.details__content {
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* end workaround */
|
||||
|
||||
summary {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user