A platform for community discussion. Free, open, simple.
DEV: whitespace control for d-tooltip (#36444)
Krisf8f04c197666
diff --git a/frontend/discourse/float-kit/components/d-float-body.gjs b/frontend/discourse/float-kit/components/d-float-body.gjsindex 3fbc1e8898b..4381f73d22b 100644--- a/frontend/discourse/float-kit/components/d-float-body.gjs+++ b/frontend/discourse/float-kit/components/d-float-body.gjs@@ -63,7 +63,7 @@ export default class DFloatBody extends Component {}<template>- <DFloatPortal+ {{~! strip whitespace ~}}<DFloatPortal@inline={{@inline}}@portalOutletElement={{@instance.portalOutletElement}}>@@ -101,6 +101,6 @@ export default class DFloatBody extends Component {{{yield}}</div></div>- </DFloatPortal>+ </DFloatPortal>{{~! strip whitespace ~}}</template>}diff --git a/frontend/discourse/float-kit/components/d-float-portal.gjs b/frontend/discourse/float-kit/components/d-float-portal.gjsindex 289a196a90f..6ba9ab93e9d 100644--- a/frontend/discourse/float-kit/components/d-float-portal.gjs+++ b/frontend/discourse/float-kit/components/d-float-portal.gjs@@ -7,12 +7,12 @@ export default class DFloatPortal extends Component {}<template>- {{#if this.inline}}+ {{~#if this.inline}}{{yield}}{{else}}{{#in-element @portalOutletElement insertBefore=null}}{{yield}}{{/in-element}}- {{/if}}+ {{/if~}}</template>}diff --git a/frontend/discourse/float-kit/components/d-tooltip.gjs b/frontend/discourse/float-kit/components/d-tooltip.gjsindex 51662c82cd4..0e547dc65be 100644--- a/frontend/discourse/float-kit/components/d-tooltip.gjs+++ b/frontend/discourse/float-kit/components/d-tooltip.gjs@@ -62,9 +62,9 @@ export default class DTooltip extends Component {...attributes><span class="fk-d-tooltip__trigger-container">- {{#if (has-block "trigger")}}+ {{~#if (has-block "trigger")~}}{{yield this.componentArgs to="trigger"}}- {{else}}+ {{~else~}}{{#if @icon}}<span class="fk-d-tooltip__icon">{{~icon @icon~}}@@ -73,11 +73,9 @@ export default class DTooltip extends Component {{{#if @label}}<span class="fk-d-tooltip__label">{{@label}}</span>{{/if}}- {{/if}}- </span>- </span>-- {{#if this.tooltipInstance.expanded}}+ {{~/if~}}+ </span></span>+ {{~#if this.tooltipInstance.expanded~}}<DFloatBody@instance={{this.tooltipInstance}}@trapTab={{and this.options.interactive this.options.trapTab}}@@ -102,6 +100,6 @@ export default class DTooltip extends Component {{{this.options.content}}{{/if}}</DFloatBody>- {{/if}}+ {{~/if~}}</template>}