Projects plugin : Add new option plugin_projects_descriptions (#75)

This commit is contained in:
Simon Lecoq
2021-01-23 14:43:33 +01:00
committed by GitHub
parent 5e0ee81395
commit c9961e88fd
9 changed files with 48 additions and 6 deletions

View File

@@ -13,8 +13,8 @@
</div>
</section>
<% } else { %>
<section>
<% for (const {name, updated, progress} of plugins.projects.list) { %>
<section class="project">
<% for (const {name, updated, progress, description = ""} of plugins.projects.list) { %>
<div class="row fill-width">
<section>
<div class="field">
@@ -23,6 +23,15 @@
</div>
</section>
</div>
<% if (plugins.projects.descriptions) { %>
<div class="row fill-width">
<section>
<div class="field description">
<%= description %>
</div>
</section>
</div>
<% } %>
<div class="row">
<section>
<div class="field">

View File

@@ -511,6 +511,22 @@
margin: 0 2px;
}
/* Projects */
.project .description {
overflow: hidden;
text-overflow: ellipsis;
display: block;
width: 420px;
margin-left: 37px;
max-height: 38px;
font-size: 12px;
white-space: normal;
/* May not work in all browsers */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* Fade animation */
.af {
opacity: 0;