chrv-components 1.12.227 → 1.12.230

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.
Binary file
@@ -4249,10 +4249,18 @@ class ChrPopoverDirective {
4249
4249
  }
4250
4250
  this.renderer.setAttribute(this.targetElement(), 'popover', 'manual');
4251
4251
  this.renderer.setAttribute(host, 'popovertarget', this.targetElementId());
4252
- this.renderer.setStyle(this.targetElement(), 'position-area', this.chrPopoverPosition());
4253
- this.renderer.addClass(this.targetElement(), 'card');
4252
+ // We are temporaryly not using position-area anymore cause it doesn't work on Firefox
4253
+ // this.renderer.setStyle(
4254
+ // this.targetElement(),
4255
+ // 'position-area',
4256
+ // this.chrPopoverPosition(),
4257
+ // );
4258
+ // this.renderer.addClass(this.targetElement(), 'card');
4254
4259
  this.renderer.addClass(this.targetElement(), 'glass');
4255
4260
  this.renderer.setStyle(this.targetElement(), 'border', 'none');
4261
+ this.renderer.setStyle(this.targetElement(), 'padding', 0);
4262
+ this.renderer.setStyle(this.targetElement(), 'background', 'none');
4263
+ this.renderer.setStyle(this.targetElement(), 'border-radius', '0.5rem');
4256
4264
  if (!this.chrPopoverOnHover() && !this.isNativePopoverTrigger()) {
4257
4265
  this.renderer.listen(this.hostElement(), 'click', () => {
4258
4266
  if (this.chrPopoverIsOpen()) {
@@ -4327,16 +4335,16 @@ class ChrPopoverDirective {
4327
4335
  if (left + updatedTargetRect.width > viewportWidth) {
4328
4336
  left = viewportWidth - updatedTargetRect.width;
4329
4337
  }
4330
- // if (left < padding) {
4331
- // left = padding;
4332
- // }
4338
+ if (left < 0) {
4339
+ left = 0;
4340
+ }
4333
4341
  // Prevent vertical overflow
4334
4342
  if (top + updatedTargetRect.height > viewportHeight) {
4335
4343
  top = viewportHeight - updatedTargetRect.height;
4336
4344
  }
4337
- // if (top < padding) {
4338
- // top = padding;
4339
- // }
4345
+ if (top < 0) {
4346
+ top = 0;
4347
+ }
4340
4348
  // Apply
4341
4349
  this.renderer.setStyle(target, 'top', `${top}px`);
4342
4350
  this.renderer.setStyle(target, 'left', `${left}px`);