svg_preview: Detect SVG in single-file mode by checking file name (#45747)

Release Notes:

- Use the files name for "is svg" checks so SVG previews and the toolbar
button work in single-file mode.
2cad6c8ef1Gabe Shahbazian committed on 12/27/2025, 11:29:36 PM· committed by GitHubparentbc24ffe
1 file changedLine totals unavailable