diff --git a/frontends/etiquette_flask/static/css/photo_card.css b/frontends/etiquette_flask/static/css/photo_card.css index 2169843..0a776cc 100644 --- a/frontends/etiquette_flask/static/css/photo_card.css +++ b/frontends/etiquette_flask/static/css/photo_card.css @@ -96,7 +96,7 @@ margin: 8px; padding: 4px; } -.photo_card_list .photo_card_selector_checkbox +.photo_card_list .photo_clipboard_selector_checkbox { grid-area: checkbox; align-self: center; @@ -119,7 +119,7 @@ border-radius: 8px; } -.photo_card_grid .photo_card_selector_checkbox +.photo_card_grid .photo_clipboard_selector_checkbox { position:absolute; left:5px; diff --git a/frontends/etiquette_flask/static/js/photo_clipboard.js b/frontends/etiquette_flask/static/js/photo_clipboard.js index 829a06b..98abada 100644 --- a/frontends/etiquette_flask/static/js/photo_clipboard.js +++ b/frontends/etiquette_flask/static/js/photo_clipboard.js @@ -107,7 +107,7 @@ function apply_check_all() Run through all the photo cards on the page and set their checkbox to the correct value. */ - const checkboxes = document.getElementsByClassName("photo_card_selector_checkbox"); + const checkboxes = document.getElementsByClassName("photo_clipboard_selector_checkbox"); for (const checkbox of checkboxes) { photo_clipboard.apply_check(checkbox); @@ -205,7 +205,7 @@ function select_all_photos() photo_clipboard.clipboard.add(photo_div.dataset.id); photo_div.classList.remove("photo_card_unselected"); photo_div.classList.add("photo_card_selected"); - const checkbox = photo_div.getElementsByClassName("photo_card_selector_checkbox")[0]; + const checkbox = photo_div.getElementsByClassName("photo_clipboard_selector_checkbox")[0]; if (checkbox) { checkbox.checked = true; @@ -224,7 +224,7 @@ function unselect_all_photos() photo_clipboard.clipboard.delete(photo_div.dataset.id); photo_div.classList.remove("photo_card_selected"); photo_div.classList.add("photo_card_unselected"); - const checkbox = photo_div.getElementsByClassName("photo_card_selector_checkbox")[0]; + const checkbox = photo_div.getElementsByClassName("photo_clipboard_selector_checkbox")[0]; if (checkbox) { checkbox.checked = false; diff --git a/frontends/etiquette_flask/templates/photo.html b/frontends/etiquette_flask/templates/photo.html index 6955db1..af9381b 100644 --- a/frontends/etiquette_flask/templates/photo.html +++ b/frontends/etiquette_flask/templates/photo.html @@ -199,7 +199,7 @@
  • diff --git a/frontends/etiquette_flask/templates/photo_card.html b/frontends/etiquette_flask/templates/photo_card.html index 4857a83..09b8220 100644 --- a/frontends/etiquette_flask/templates/photo_card.html +++ b/frontends/etiquette_flask/templates/photo_card.html @@ -29,7 +29,7 @@ data-id="{{photo.id}}" class="photo_card photo_card_{{view}} photo_card_unselected {%if photo.searchhidden%}photo_card_searchhidden{%endif%}" > - +
    {{photo.basename}}
    {{- metadata_inner|safe -}}