mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Refactor icons used in lightbox HTML
Uses <svg> elements instead of hacky CSS pseudoelements Adds a migration to mark posts with lightboxes as needing a rebake
This commit is contained in:
@@ -424,9 +424,10 @@ class CookedPostProcessor
|
||||
|
||||
a["title"] = CGI.escapeHTML(img["title"] || filename)
|
||||
|
||||
meta.add_child create_icon_node("far-image")
|
||||
meta.add_child create_span_node("filename", a["title"])
|
||||
meta.add_child create_span_node("informations", informations)
|
||||
meta.add_child create_span_node("expand")
|
||||
meta.add_child create_icon_node("discourse-expand")
|
||||
end
|
||||
|
||||
def get_filename(upload, src)
|
||||
|
||||
Reference in New Issue
Block a user