Skip to content

Commit 935da38

Browse files
committed
Small style fixes
1 parent aabbb77 commit 935da38

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

pubstash/server.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ async function convertHtmlToPdf(html: string): Promise<Buffer> {
120120
// Load the HTML
121121
await page.setContent(html, { waitUntil: 'load', timeout: PAGE_TIMEOUT_MS });
122122

123+
// Chromium 146 renders characters like ↩ (U+21A9) as color emoji by
124+
// default. Force text presentation so they stay as simple glyphs —
125+
// important for academic reference back-links.
126+
await page.addStyleTag({
127+
content: `*, *::before, *::after { font-variant-emoji: text; }`,
128+
});
129+
123130
// Wait for all web fonts before paged.js measures text.
124131
// (Key fix from the pubpub/pagedjs-cli fork.)
125132
await page.evaluate(() => document.fonts.ready);

server/utils/queryHelpers/pubOptions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ export default (options: PubGetOptions) => {
5757
model: PubAttribution,
5858
as: 'attributions',
5959
separate: true,
60+
order: [
61+
['order', 'ASC NULLS LAST'],
62+
['createdAt', 'ASC'],
63+
],
6064
include: [includeUserModel({ as: 'user' })],
6165
},
6266
];

0 commit comments

Comments
 (0)