From 84e96e2497835deeee28deb5d3437801a6dd995b Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 1 Mar 2022 21:30:52 +0100 Subject: [PATCH] Align viewer icons --- photologue/static/lightgallery/css/lightgallery.css | 4 ++++ .../static/lightgallery/plugins/admin/lg-admin.js | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/photologue/static/lightgallery/css/lightgallery.css b/photologue/static/lightgallery/css/lightgallery.css index d74d81f..fd98e44 100644 --- a/photologue/static/lightgallery/css/lightgallery.css +++ b/photologue/static/lightgallery/css/lightgallery.css @@ -719,3 +719,7 @@ body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object right: 0; left: 0; } + +.lg-toolbar .lg-bi-icon { + padding: 5px 0 !important; +} diff --git a/photologue/static/lightgallery/plugins/admin/lg-admin.js b/photologue/static/lightgallery/plugins/admin/lg-admin.js index 890c983..44a3b04 100644 --- a/photologue/static/lightgallery/plugins/admin/lg-admin.js +++ b/photologue/static/lightgallery/plugins/admin/lg-admin.js @@ -13,20 +13,20 @@ class lgAdmin { } init() { - const adminIcon = ""; - const deleteIcon = "";; - const reportIcon = ""; + const adminIcon = ""; + const deleteIcon = "";; + const reportIcon = ""; // Add button linking to Django admin page - this.core.$toolbar.append(`${adminIcon}`); + this.core.$toolbar.append(`${adminIcon}`); document.getElementById("lg-admin").style.display = this.isStaff ? 'block' : 'none'; // Add button to delete photo - this.core.$toolbar.append(`${deleteIcon}`); + this.core.$toolbar.append(`${deleteIcon}`); document.getElementById("lg-delete").style.display = this.isStaff ? 'block' : 'none'; // Add button to report photo - this.core.$toolbar.append(`${reportIcon}`); + this.core.$toolbar.append(`${reportIcon}`); this.core.LGel.on("lgAfterSlide.admin", this.onAfterSlide.bind(this)); }