Skip to content
Snippets Groups Projects
Commit ff1b242d authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent content overflow, closes #1710

Closes #1710

Merge request studip/studip!1259
parent 74b9ff76
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
<?= htmlReady($navigation->getTitle()) ?>
</p>
<p class="content-item-description">
<?= htmlReady($navigation->getDescription()) ?>
<?= htmlReady(mila($navigation->getDescription(), 70)) ?>
</p>
</div>
</a>
......
......@@ -13,11 +13,10 @@
.content-item-link {
height: 90px;
padding: 5px;
grid-template-columns: 42px 135px;
.content-item-img-wrapper {
margin: 5px;
margin-right: 10px;
margin-top: 0;
margin: 0 10px 5px 5px;
width: 32px;
}
......@@ -53,24 +52,26 @@
.content-item-link {
color: unset;
display: flex;
display: grid;
grid-template-columns: 74px auto;
grid-gap: 5px;
height: 130px;
padding: 10px;
padding: 15px 10px 0 10px;
transition: 0.5s;
.content-item-img-wrapper {
margin: 15px;
margin-right: 20px;
margin-top: 0;
width: 64px;
}
.content-item-text {
padding-top: -2px;
.content-item-title {
color: $base-color;
font-size: 2rem;
width: 100%;
max-width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
......@@ -95,5 +96,17 @@
@media (max-width: 820px) {
.content-items {
grid-template-columns: 100%;
.content-item {
.content-item-link {
.content-item-text {
.content-item-title {
max-width: 100%;
text-overflow: unset;
overflow: unset;
}
}
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment