landing redesign + svg height fix

This commit is contained in:
cnrad
2022-03-27 16:09:49 -04:00
parent 403ffbb804
commit acc71041e8
3 changed files with 57 additions and 78 deletions

View File

@@ -133,8 +133,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="218px">
<foreignObject x="0" y="0" width="410" height="218">
<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">
<div xmlns="http://www.w3.org/1999/xhtml" style="
position: absolute;
width: 400px;