Fixing broken looking UI when no images present

This commit is contained in:
Michał Gdula 2022-09-29 11:27:44 +00:00
parent 8cb2fea9cd
commit afdaab4e13
4 changed files with 68 additions and 48 deletions

View file

@ -182,6 +182,10 @@
<?php
if (empty($group['image_list']) && $_GET['mode'] != "edit" && !empty($_GET['id'])) {
echo "<div class='info-text defaultFonts'>
<h1>Nothing here!</h1>
<p>There are no images in the group, add some!</p>
</div>";
echo "<div id='gallery' class='gallery-root defaultDecoration' style='display: none;'>";
} else {
echo "<div id='gallery' class='gallery-root defaultDecoration' >";