Skip to content

Commit

Permalink
CLDR-17947 site: pin image width, win fix (#4054)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored Sep 16, 2024
1 parent 31d2f5e commit 5fd5305
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/site/assets/css/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,8 @@ header#atViewHeader {
div > header {
display: none !important;
}

img {
max-width: 100%;
max-height: 90dvh;
}
1 change: 1 addition & 0 deletions docs/site/assets/js/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 5fd5305

Please sign in to comment.