Skip to content

Commit

Permalink
#4695 - Embeds improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Apr 22, 2024
1 parent 0e859fa commit 44897f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/scripts/BxBaseEmbedSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public function getHtml ($sUrl, $sTheme)
$aData = $this->getData($sUrl, $sTheme);

return '<a href="'.$aData['url'].'" target="_blank" style="text-decoration: none; color: inherit;">
<div style="display: flex; flex-direction: row; column-gap: height: 128px; border: 1px solid #ccc; align-items: stretch;">
<div style="flex: 0 0 128px; height: 128px; background: url('. ($aData['image'] ? $aData['image'] : $aData['logo']) .') center center / cover no-repeat;">
<div style="display: flex; flex-direction: row; column-gap: height: 128px; border: 1px solid rgba(107, 114, 128, 0.2); border-radius:16px; align-items: stretch;">
<div style="flex: 0 0 128px; height: 128px; border-radius:16px 0 0 16px; background: url('. ($aData['image'] ? $aData['image'] : $aData['logo']) .') center center / cover no-repeat;">
</div>
<div style="flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;margin: 0 1rem">
<div style="padding-top: 0.5rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; text-overflow: ellipsis"><b> '.$aData['title'].'</b></div>
Expand Down

0 comments on commit 44897f8

Please sign in to comment.