Skip to content

Commit

Permalink
CLDR-17947 site: pin image width, win fix (unicode-org#4054)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored and haytenf committed Sep 17, 2024
1 parent 3eae519 commit cc74fdd
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 cc74fdd

Please sign in to comment.