gd-bs 6.7.7 → 6.7.9

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.
@@ -306,12 +306,15 @@ var _FloatingUI = /** @class */ (function () {
306
306
  if (_this._elArrow) {
307
307
  var arrowX = middlewareData.arrow.x;
308
308
  var arrowY = middlewareData.arrow.y;
309
+ var placement = (((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement).split('-')[0];
309
310
  var side = {
310
311
  top: 'bottom',
311
312
  right: 'left',
312
313
  bottom: 'top',
313
314
  left: 'right'
314
- }[(((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement).split('-')[0]];
315
+ }[placement];
316
+ // Set the placement
317
+ _this._elContent.setAttribute("data-placement", placement);
315
318
  // Update the location
316
319
  Object.assign(_this._elArrow.style, (_b = {
317
320
  left: arrowX != null ? "".concat(arrowX, "px") : '',
@@ -215,6 +215,8 @@ var _Tooltip = /** @class */ (function (_super) {
215
215
  else {
216
216
  this._elContent = this.props.content;
217
217
  }
218
+ // Set the padding
219
+ this._elContent.classList.add("p-2");
218
220
  // Set the on create event
219
221
  /*
220
222
  options["onCreate"] = (tippyObj) => {