Fix height size when using hide profile

This commit is contained in:
broki
2022-11-27 14:31:00 +08:00
committed by GitHub
parent 1830ff60b0
commit 4cbd9cab81

View File

@@ -135,8 +135,8 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
activity = Array.isArray(activities) ? activities[0] : activities;
return `
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" width="410px" height="210px">
<foreignObject x="0" y="0" width="410" height="210">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" width="410px" height="${hideProfile === "true" ? "130px" : "210px"}">
<foreignObject x="0" y="0" width="410" height="${hideProfile === "true" ? "130" : "210"}">
<div xmlns="http://www.w3.org/1999/xhtml" style="
position: absolute;
width: 400px;