From cc74fddc9299f8ee998d44ffc63604813d78d548 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 16 Sep 2024 16:38:38 -0500 Subject: [PATCH] CLDR-17947 site: pin image width, win fix (#4054) --- docs/site/assets/css/page.css | 5 +++++ docs/site/assets/js/build.mjs | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/site/assets/css/page.css b/docs/site/assets/css/page.css index 3c82fae7d63..c199cc26660 100644 --- a/docs/site/assets/css/page.css +++ b/docs/site/assets/css/page.css @@ -180,3 +180,8 @@ header#atViewHeader { div > header { display: none !important; } + +img { + max-width: 100%; + max-height: 90dvh; +} diff --git a/docs/site/assets/js/build.mjs b/docs/site/assets/js/build.mjs index 9eaf376d7b8..5b98787d668 100644 --- a/docs/site/assets/js/build.mjs +++ b/docs/site/assets/js/build.mjs @@ -31,6 +31,7 @@ const coll = new Intl.Collator(["und"]); async function processFile(d, fullPath, out) { const f = await fs.readFile(fullPath, "utf-8"); const m = matter(f); + fullPath = fullPath.replace(/\\/g, '/'); // backslash with slash, for win if (m && m.data) { const { data } = m; out.all.push({ ...data, fullPath });