feat: implement PosterLight component and enhance SiteLogo functionality for improved poster rendering
This commit is contained in:
@@ -76,12 +76,13 @@ function List({ hiddenRef, data, qrReady }) {
|
||||
|
||||
try {
|
||||
const fontEmbedCSS = await getVazirEmbedCss();
|
||||
imgData = await toPng(element, {
|
||||
const options = {
|
||||
pixelRatio: 2,
|
||||
backgroundColor: "#ffffff",
|
||||
style: { opacity: "1" },
|
||||
fontEmbedCSS,
|
||||
});
|
||||
};
|
||||
imgData = await toPng(element, options);
|
||||
pxWidth = element.offsetWidth * 2;
|
||||
pxHeight = element.offsetHeight * 2;
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user