mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-25 12:27:16 +00:00
Fix height size when using hide profile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user