mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 03:30:49 +01:00
Fix et2-vbox center alignment
This commit is contained in:
parent
978e858d8d
commit
85f9ef0c6f
@ -150,14 +150,21 @@ export class Et2VBox extends Et2Box
|
|||||||
return [
|
return [
|
||||||
...super.styles,
|
...super.styles,
|
||||||
css`
|
css`
|
||||||
:host > div {
|
:host > div {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
/* CSS for child elements */
|
|
||||||
::slotted(*) {
|
:host([align="center"]) > div {
|
||||||
/* Stop children from growing vertically. In general we want them to stay their "normal" height */
|
align-items: center;
|
||||||
flex-grow: 0;
|
}
|
||||||
}
|
|
||||||
|
/* CSS for child elements */
|
||||||
|
|
||||||
|
::slotted(*) {
|
||||||
|
/* Stop children from growing vertically. In general we want them to stay their "normal" height */
|
||||||
|
flex-grow: 0;
|
||||||
|
}
|
||||||
|
|
||||||
`
|
`
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user