]> _ Git - fluidbook_tools.git/commitdiff
fix #5973
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 1 Jun 2023 09:27:47 +0000 (11:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 1 Jun 2023 09:27:47 +0000 (11:27 +0200)
src/Links/LayerLink.php
src/Links/Link.php
src/Links/ShowLinkLink.php

index df2e7cd82271dbecfb7b1c69e427b9588f6836cf..dd6c65f65836eb12d0e9696000ad036e36fe02ba 100644 (file)
@@ -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();
index c9ff149ed016e10453be8fa6322bc4434cc1846b..446db6a96dd7283432ef3dfd8bf94d21443bd091 100644 (file)
@@ -114,6 +114,7 @@ class Link {
     public $gamifyCoins = 0;
     public $tooltipColor = null;
     public $tooltipBackgroundColor = null;
+    public $transition;
     protected $role = 'button';
 
     protected $_init;
index 7472fe2133f28cacdd56233b1e3c202957a865cf..81bc9d6797d3b7d1b714df46ba4394f859533df5 100644 (file)
@@ -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;
     }
 }