@@ -49,8 +49,10 @@ export const TalkwalkerCollageTemplate = `@using System
4949 StartRow = startRow,
5050 ColSpan = colSpan,
5151 RowSpan = rowSpan,
52- Width = $"{colSpan * 50}px",
53- Height = $"{rowSpan * 50}px",
52+ Width = $"{colSpan * 50}",
53+ Height = $"{rowSpan * 50}",
54+ StyleWidth = $"{colSpan * 50}px",
55+ StyleHeight = $"{rowSpan * 50}px",
5456 Img = image,
5557 Engagement = ReportExtensions.FormatInteger(image["engagement"] as String, true),
5658 Url = image["url"] as String,
@@ -130,12 +132,14 @@ export const TalkwalkerCollageTemplate = `@using System
130132 var placed = placedList.FirstOrDefault(p => p.StartRow == r && p.StartCol == c);
131133 if (placed != null)
132134 {
133- <td rowspan="@placed.RowSpan" colspan="@placed.ColSpan" style="width: @placed.Width; height: @placed.Height;">
134- <a href="@placed.Url" target="_blank">
135- <img src="@GetString(placed.Img, "images.url")" alt="Engagement: @GetInt(placed.Img, "engagement")" style="width: @placed.Width; height: @placed.Height;" />
136- <div style="color: white; position: absolute; background-color: rgba(0,0,0,0.5); width: 100%; bottom: 0; text-align: center;">@placed.Engagement</div>
135+ <td rowspan="@placed.RowSpan" colspan="@placed.ColSpan" Width="@placed.Width" Height="@placed.Height" bgcolor="#000000" valign="top" style="width: @placed.StyleWidth; height: @placed.StyleHeight;">
136+ <div style="height: @placed.StyleHeight; position: relative; font-size: 0;">
137+ <a href="@placed.Url" target="_blank" style="display: block; width: 100%; height: 100%; text-decoration: none;">
138+ <img src="@GetString(placed.Img, "images.url")" alt="Engagement: @GetInt(placed.Img, "engagement")" style="width: @placed.StyleWidth; height: @placed.StyleHeight; display: block; vertical-align: bottom; border: 0; margin: 0; padding: 0;" width="@placed.Width" height="@placed.Height" border="0" align="absbottom" />
139+ <div style="font-size: 16px; color: white; position: absolute; background-color: rgba(0,0,0,0.5); width: 100%; bottom: 0; left: 0; text-align: center;">@placed.Engagement</div>
137140 </a>
138- </td>
141+ </div>
142+ </td>
139143 }
140144 else if (occupied[c, r])
141145 {
0 commit comments