From: Vincent Vanwaelscappel Date: Thu, 1 Jun 2023 09:27:47 +0000 (+0200) Subject: fix #5973 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6295df0dd806a61ac38fb6f13dca456aa7e5bb79;p=fluidbook_tools.git fix #5973 --- diff --git a/src/Links/LayerLink.php b/src/Links/LayerLink.php index df2e7cd..dd6c65f 100644 --- a/src/Links/LayerLink.php +++ b/src/Links/LayerLink.php @@ -6,7 +6,7 @@ use Illuminate\Support\Facades\Log; class LayerLink extends ImageLink { protected $maxzoom_default = 4; - public $defaultZIndex = 31; + public $defaultZIndex = 30; public function ignore() { return parent::ignore() || $this->isOutsidePage(); diff --git a/src/Links/Link.php b/src/Links/Link.php index c9ff149..446db6a 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -114,6 +114,7 @@ class Link { public $gamifyCoins = 0; public $tooltipColor = null; public $tooltipBackgroundColor = null; + public $transition; protected $role = 'button'; protected $_init; diff --git a/src/Links/ShowLinkLink.php b/src/Links/ShowLinkLink.php index 7472fe2..81bc9d6 100644 --- a/src/Links/ShowLinkLink.php +++ b/src/Links/ShowLinkLink.php @@ -21,7 +21,7 @@ class ShowLinkLink extends NormalLink { public function getAdditionnalContent() { $res = parent::getAdditionnalContent(); $this->close_button = $this->close_button ?: 'none'; - $res .= ' data-showmode="' . $this->target . '" data-showclose="' . $this->close_button . '" data-showid="' . $this->to . '"'; + $res .= ' data-showmode="' . $this->target . '" data-showclose="' . $this->close_button . '" data-showtransition="' . ($this->transition ?: 'fadein') . '" data-showid="' . $this->to . '"'; return $res; } }