mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Et2Description: Fix extra space while preserving line breaks
This commit is contained in:
parent
e73fe68384
commit
166db3f4d2
@ -22,8 +22,8 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach
|
||||
return [
|
||||
...super.styles,
|
||||
css`
|
||||
:host {
|
||||
white-space: pre-line;
|
||||
* {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
:host a {
|
||||
cursor: pointer;
|
||||
@ -163,8 +163,10 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach
|
||||
|
||||
render()
|
||||
{
|
||||
return html`
|
||||
<slot></slot>`;
|
||||
// Turn off IDE reformatting, or it will add an extra line break into the template
|
||||
// @formatter:off
|
||||
return html`<slot></slot>`;
|
||||
// @formatter:on
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user