The link now has a proper title and the tab focus will highlight the headline.
<img src="{$object->getImageUrl()}" height="{$object->height}" width="{$object->width}" class="unfurlUrlImage" alt="" loading="lazy">
{/if}
<div class="unfurlUrlInformation">
- <div class="unfurlUrlTitle">{$object->title}</div>
+ <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>
- <a class="unfurlUrlLinkShadow" {anchorAttributes url=$object->url appendClassname=false isUgc=$enableUgc}></a>
</div>
{/if}
{else}
}
.unfurlUrlInformation {
- position: relative;
padding: 10px 10px 25px 10px;
}
@include wcfFontHeadline;
@include wcfFontBold;
+ color: inherit;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
+
+ &::before {
+ bottom: 0;
+ content: "";
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ }
+
+ &:hover,
+ &:focus {
+ color: inherit;
+ }
}
.unfurlUrlDescription {
bottom: 5px;
color: $wcfContentDimmedText;
- float: right;
position: absolute;
right: 5px;
height: 12px !important;
}
}
-
-.unfurlUrlLinkShadow {
- bottom: 0;
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
-}