From 6af90de0485613d995229101c06220b398d4c69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gu=CC=88nther?= Date: Thu, 15 Sep 2022 10:27:04 +0200 Subject: [PATCH 1/2] Change icon to chart --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 4c9a0e4..2abae5a 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ 'plausible' => function ($kirby) { return [ 'label' => 'Analytics', - 'icon' => 'account', + 'icon' => 'chart', 'disabled' => false, 'menu' => true, 'link' => 'plausible', From 1e8ac4bee68afa985e65783ba071728411450a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gu=CC=88nther?= Date: Thu, 15 Sep 2022 10:27:24 +0200 Subject: [PATCH 2/2] Fix mobile iframe height --- index.css | 11 +++++++++++ index.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 index.css diff --git a/index.css b/index.css new file mode 100644 index 0000000..1f83577 --- /dev/null +++ b/index.css @@ -0,0 +1,11 @@ +.plausible-iframe { + width: 1px; + min-width: 100%; + height: 1700px; +} + +@media (max-width: 850px) { + .plausible-iframe { + height: 2300px; + } +} \ No newline at end of file diff --git a/index.js b/index.js index 04cde90..f5853c0 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ panel.plugin("floriankarsten/plausible", { template: ` - +
You need to set floriankarsten.plausible.sharedLink in config.php