Skip to content
Snippets Groups Projects
Commit c7f864df authored by Michaela Brückner's avatar Michaela Brückner :unicorn:
Browse files

fix for #1385

parent 1ad33c02
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,13 @@
}
?>
<?= Icon::create($icon, Icon::ROLE_CLICKABLE)->asImg(20, ['class' => "text-bottom"]) ?>
<div class="title"><?= htmlReady($material['name']) ?></div>
<div class="title">
<? if (strlen($material['name']) > 50) : ?>
<?= htmlReady(substr($material['name'], 0, 50)) . ' ...' ?>
<? else : ?>
<?= htmlReady($material['name']) ?>
<? endif ?>
</div>
</h1>
</header>
<div class="image" style="background-image: url(<?= $material->getLogoURL() ?>);<?= (!$material['front_image_content_type']) ? " background-size: 60% auto;" : "" ?>"></div>
......
......@@ -34,7 +34,7 @@
role="clickable"
size="20"
class="text-bottom"></studip-icon>
{{ name }}
<div class="title">{{ name }}</div>
</h1>
</header>
<div class="image"
......
......@@ -219,6 +219,10 @@ ul.reviews, ol.reviews {
}
.title {
max-height: 34px;
max-width: 85%;
overflow: hidden;
text-overflow: ellipsis;
hyphens: auto;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment