]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Rework] WebUI: Replace Glyphicons with FontAwesome SVG icons
authorCopilot <198982749+Copilot@users.noreply.github.com>
Fri, 24 Oct 2025 11:40:42 +0000 (14:40 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 24 Oct 2025 12:29:19 +0000 (15:29 +0300)
commit073fdf986d651d64f53ce069815eabdee199b4e8
treefc46597aed0dd01b58f16193904350ecbc414d52
parent36d332f4a9c4f048af99362081bf7e4df8513231
[Rework] WebUI: Replace Glyphicons with FontAwesome SVG icons

The implementation uses a global MutationObserver watching document.body that:

-  Detects when new fooicon elements are added to the DOM
-  Detects when class attributes change on existing fooicon elements (e.g., sort icon cycling)
-  Automatically processes and replaces icons

Benefits:

✓ Sharp SVG rendering at all zoom levels (vs blurry webfonts)
✓ No font loading issues or CORS problems
✓ Reduced code footprint

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: moisseev <2275981+moisseev@users.noreply.github.com>
interface/css/FooTable.FontAwesome.css [new file with mode: 0644]
interface/css/FooTable.Glyphicons.css [deleted file]
interface/css/font-glyphicons.css [deleted file]
interface/fonts/glyphicons-halflings-regular.ttf [deleted file]
interface/fonts/glyphicons-halflings-regular.woff [deleted file]
interface/fonts/glyphicons-halflings-regular.woff2 [deleted file]
interface/index.html
interface/js/app/footable-fontawesome.js [new file with mode: 0644]
interface/js/app/rspamd.js
interface/js/main.js