Skip to content

Commit

Permalink
fix for user-defined gallery display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rbbrdckybk committed Mar 1, 2023
1 parent cf08e51 commit fc5b06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def build_gallery(control):

buffer += "\t<li id=\"" + img_identifier + "\" onclick=\"img_modal('i_" + img_identifier + "', 'd_" + img_identifier + "', 'p_" + img_identifier + "')\">\n"
if control.config['gallery_current'] == 'user_gallery':
buffer += "\t\t<img src=\"/user_gallery/" + img_identifier + "\" id=\"i_" + img_identifier + "\"/>\n"
#buffer += "\t\t<img src=\"/user_gallery/" + img_identifier + "\" id=\"i_" + img_identifier + "\"/>\n"
buffer += "\t\t<img src=\"/user_gallery/" + utils.filename_from_abspath(img) + "\" id=\"i_" + img_identifier + "\"/>\n"
else:
buffer += "\t\t<img src=\"/" + img + "\" id=\"i_" + img_identifier + "\"/>\n"
buffer += "\t\t<div class=\"overlay\"><span id=\"c_" + img_identifier + "\">" + short_prompt + "</span></div>\n"
Expand Down

0 comments on commit fc5b06f

Please sign in to comment.