mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-11-25 15:30:01 +00:00
Fix height size when using hide profile
This commit is contained in:
1 parent
1830ff60b0
commit
4cbd9cab81
1 file changed
+2
-2
+2
-2
@@ -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