@covet-pics/covet-pics-widget 0.141.0 → 0.141.2

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.
@@ -9531,9 +9531,11 @@ const CovetPicsUpload = class {
9531
9531
  "--covet-pics-popup-background-color": utils.hexToRGBA(this.appState.settings.popup_background_color, (this.appState.settings.popup_background_opacity / 100).toString()),
9532
9532
  "--covet-pics-scrollbar-width": `${this.getScrollbarWidth().width}px`,
9533
9533
  "--covet-pics-scrollbar-padding": `${this.getScrollbarWidth().paddingRgiht}px`,
9534
- "--covet-pics-upload-img-ratio": `${this.widgetWidth < 480 ? (this.widgetWidth - 48) / 352 : 1}`,
9535
- "--covet-pics-font-family": `${this.appState.settings.font_family}, sans-serif`
9534
+ "--covet-pics-upload-img-ratio": `${this.widgetWidth < 480 ? (this.widgetWidth - 48) / 352 : 1}`, // TODO temp solution
9536
9535
  };
9536
+ if (this.appState.settings.font_family !== "") {
9537
+ cssVariables["--covet-pics-font-family"] = `${this.appState.settings.font_family}, sans-serif`;
9538
+ }
9537
9539
  return cssVariables;
9538
9540
  }
9539
9541
  async imagesDrop() {