From 04be0a864b332da6a4e320c753ea3cdd0c9f7173 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 26 Dec 2022 00:24:01 +0100 Subject: [PATCH] Fix Bootstrap icons alignment --- photo21/static/layout.css | 7 +++++++ .../static/lightgallery/plugins/admin/lg-admin.js | 4 ++-- photologue/templates/photologue/gallery_detail.html | 10 ++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/photo21/static/layout.css b/photo21/static/layout.css index c336df4..27537c6 100644 --- a/photo21/static/layout.css +++ b/photo21/static/layout.css @@ -9,6 +9,13 @@ SPDX-License-Identifier: GPL-3.0-or-later color-scheme: dark; } +/* Bootstrap icons */ +.bi { + display: inline-block; + vertical-align: -0.125em; + fill: currentcolor; +} + /* Login view */ .login { max-width: 35rem; diff --git a/photologue/static/lightgallery/plugins/admin/lg-admin.js b/photologue/static/lightgallery/plugins/admin/lg-admin.js index e9e143a..8b83e33 100644 --- a/photologue/static/lightgallery/plugins/admin/lg-admin.js +++ b/photologue/static/lightgallery/plugins/admin/lg-admin.js @@ -18,8 +18,8 @@ class lgAdmin { init() { const adminIcon = ""; - const deleteIcon = "";; - const reportIcon = ""; + const deleteIcon = "";; + const reportIcon = ""; // Add button linking to Django admin page this.core.$toolbar.append(`${adminIcon}`); diff --git a/photologue/templates/photologue/gallery_detail.html b/photologue/templates/photologue/gallery_detail.html index 83cab1a..e0903eb 100644 --- a/photologue/templates/photologue/gallery_detail.html +++ b/photologue/templates/photologue/gallery_detail.html @@ -31,7 +31,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {{ gallery.title }} {% if request.user.is_staff and perms.photologue.change_gallery %} - + @@ -76,7 +76,13 @@ SPDX-License-Identifier: GPL-3.0-or-later {% endfor %} {% endblock %}