Skip to content
Snippets Groups Projects
Commit 578de864 authored by David Siegfried's avatar David Siegfried
Browse files

prevent content overflow, closes #1710

Closes #1710

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