@getflip/swirl-components 0.173.1 → 0.173.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-03-21T10:36:13",
2
+ "timestamp": "2024-03-21T12:26:41",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.3.1",
@@ -148,6 +148,7 @@ const SwirlLightbox = class {
148
148
  setTimeout(() => {
149
149
  this.modal.hide();
150
150
  this.resetImageZoom();
151
+ this.stopAllMediaPlayers();
151
152
  this.closing = false;
152
153
  }, 150);
153
154
  }
@@ -972,11 +972,12 @@ const SwirlText = class {
972
972
  }
973
973
  render() {
974
974
  const Tag = this.as;
975
+ const truncate = this.truncate && (!Boolean(this.lines) || this.lines === 1);
975
976
  const className = index.classnames("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-family-${this.fontFamily}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--truncate-direction-${this.truncateDirection}`, `text--weight-${this.weight}`, {
976
- "text--truncate": this.truncate && (!Boolean(this.lines) || this.lines === 1),
977
+ "text--truncate": truncate,
977
978
  });
978
979
  const styles = {
979
- whiteSpace: this.whiteSpace,
980
+ whiteSpace: truncate ? "nowrap" : this.whiteSpace,
980
981
  };
981
982
  return (index$1.h(index$1.Host, null, index$1.h(Tag, { class: className, ref: (el) => (this.textEl = el), style: styles }, index$1.h("slot", null))));
982
983
  }