{if $object->isPlainUrl()}
<a {anchorAttributes url=$object->url isUgc=$enableUgc}>{$object->title}</a>
{else}
- <div class="unfurlUrlCard{*
- *}{if $object->hasCoverImage()} unfurlUrlCardCoverImage{/if}{*
- *}{if $object->hasSquaredImage()} unfurlUrlCardSquaredImage{/if}{*
- *}">
- {if !$object->getImageUrl()|empty}
- <img src="{$object->getImageUrl()}" height="{$object->height}" width="{$object->width}" class="unfurlUrlImage" alt="" loading="lazy">
- {/if}
- <div class="unfurlUrlInformation">
- <a class="unfurlUrlTitle" {anchorAttributes url=$object->url appendClassname=false isUgc=$enableUgc}>{$object->title}</a>
- <div class="unfurlUrlDescription">{$object->description}</div>
- <div class="unfurlUrlHost">{$object->getHost()}</div>
+ <div class="unfurlUrlCardContainer">
+ <div class="unfurlUrlCard{*
+ *}{if $object->hasCoverImage()} unfurlUrlCardCoverImage{/if}{*
+ *}{if $object->hasSquaredImage()} unfurlUrlCardSquaredImage{/if}{*
+ *}">
+ {if !$object->getImageUrl()|empty}
+ <img src="{$object->getImageUrl()}" height="{$object->height}" width="{$object->width}" class="unfurlUrlImage" alt="" loading="lazy">
+ {/if}
+ <div class="unfurlUrlInformation">
+ <a class="unfurlUrlTitle" {anchorAttributes url=$object->url appendClassname=false isUgc=$enableUgc}>{$object->title}</a>
+ <div class="unfurlUrlDescription">{$object->description}</div>
+ <div class="unfurlUrlHost">{$object->getHost()}</div>
+ </div>
</div>
</div>
{/if}
{if $object->isPlainUrl()}
<a {anchorAttributes url=$object->url isUgc=$enableUgc}>{$object->title}</a>
{else}
- <div class="unfurlUrlCard{*
- *}{if $object->hasCoverImage()} unfurlUrlCardCoverImage{/if}{*
- *}{if $object->hasSquaredImage()} unfurlUrlCardSquaredImage{/if}{*
- *}">
- {if !$object->getImageUrl()|empty}
- <img src="{$object->getImageUrl()}" height="{$object->height}" width="{$object->width}" class="unfurlUrlImage" alt="" loading="lazy">
- {/if}
- <div class="unfurlUrlInformation">
- <a class="unfurlUrlTitle" {anchorAttributes url=$object->url appendClassname=false isUgc=$enableUgc}>{$object->title}</a>
- <div class="unfurlUrlDescription">{$object->description}</div>
- <div class="unfurlUrlHost">{$object->getHost()}</div>
+ <div class="unfurlUrlCardContainer">
+ <div class="unfurlUrlCard{*
+ *}{if $object->hasCoverImage()} unfurlUrlCardCoverImage{/if}{*
+ *}{if $object->hasSquaredImage()} unfurlUrlCardSquaredImage{/if}{*
+ *}">
+ {if !$object->getImageUrl()|empty}
+ <img src="{$object->getImageUrl()}" height="{$object->height}" width="{$object->width}" class="unfurlUrlImage" alt="" loading="lazy">
+ {/if}
+ <div class="unfurlUrlInformation">
+ <a class="unfurlUrlTitle" {anchorAttributes url=$object->url appendClassname=false isUgc=$enableUgc}>{$object->title}</a>
+ <div class="unfurlUrlDescription">{$object->description}</div>
+ <div class="unfurlUrlHost">{$object->getHost()}</div>
+ </div>
</div>
</div>
{/if}
+.unfurlUrlCardContainer {
+ margin: 1em 0 0 0;
+}
+
.unfurlUrlCard {
background-color: var(--wcfContentBackground);
border-radius: 3px;
0 1px 2px rgba(0, 0, 0, 0.24);
color: var(--wcfContentText);
display: inline-block;
- margin: 1em 0 0 0;
max-width: 100%;
overflow: hidden;
position: relative;