Commit 50d49234 authored by Aria Givi's avatar Aria Givi
Browse files

better solution for long product info + links

parent 9252b311
......@@ -2076,9 +2076,9 @@
}
},
"cross-env": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz",
"integrity": "sha1-bs1MAV1Xc+YUA57lKQdmabnRJvI=",
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.1.tgz",
"integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==",
"dev": true,
"requires": {
"cross-spawn": "^6.0.5"
......@@ -2087,7 +2087,7 @@
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true,
"requires": {
"nice-try": "^1.0.4",
......@@ -5757,7 +5757,7 @@
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
"integrity": "sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y=",
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
"dev": true
},
"no-case": {
......
......@@ -44,12 +44,22 @@
text-decoration: none;
font-size: .6em;
color: black;
overflow: hidden;
text-overflow: ellipsis;
white-space: -moz-pre-space;
width: 100%;
display: inline-block;
}
}
.product-tile-subheadline {
&>a {
font-size: .7em;
overflow: hidden;
text-overflow: ellipsis;
white-space: -moz-pre-space;
width: 100%;
display: inline-block;
}
}
......
......@@ -9,7 +9,7 @@
<div class="product-tile-headline">
<h2 class="product-tile-title" title="{{ $result->titel }}">
<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" rel="noopener">
{!! strlen($result->titel) <= 20? $result->titel : substr($result->titel, 0, 20) . "..." !!}
{!! $result->titel !!}
</a>
</h2>
</div>
......@@ -25,7 +25,7 @@
</div>
<div class="product-tile-subheadline">
<a class="product-tile-display-link" href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" title="{{ $result->anzeigeLink }}" rel="noopener" tabindex="-1">
{!! strlen($result->anzeigeLink) <= 15? $result->anzeigeLink: substr($result->anzeigeLink, 0, 15) . "..." !!}
{!! $result->anzeigeLink !!}
</a>
<!-- @if( isset($result->partnershop) && $result->partnershop === TRUE)
<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/partnershops") }}" target="_blank" rel="noopener">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment