Skip to content

Commit 60981e9

Browse files
Adjust alert icon fallback viewBox for Font Awesome
Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com> Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/7a7f788a-ac86-476b-afbb-d2cd30792f53
1 parent ffd9143 commit 60981e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ document.addEventListener("DOMContentLoaded", function () {
188188

189189
const title = document.createElement("p");
190190
title.className = "markdown-alert-title";
191-
const alertMeta = GITHUB_ALERT_META[alertType] || { label: markerMatch[1], path: "", viewBox: "0 0 16 16" };
191+
const alertMeta = GITHUB_ALERT_META[alertType] || { label: markerMatch[1], path: "" };
192192
const icon = document.createElement("span");
193193
icon.className = "markdown-alert-icon";
194194
icon.setAttribute("aria-hidden", "true");
195195

196196
if (alertMeta.path) {
197197
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
198-
svg.setAttribute("viewBox", alertMeta.viewBox || "0 0 16 16");
198+
svg.setAttribute("viewBox", alertMeta.viewBox || "0 0 512 512");
199199
const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
200200
path.setAttribute("d", alertMeta.path);
201201
svg.appendChild(path);

0 commit comments

Comments
 (0)