mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
apps: Replace short description with tags in apps list
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> [sunil: Move style to CSS] [sunil: Allow upto three lines of tags] [sunil: Adjust width and padding for app cards] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
4a620fd1db
commit
800464eb49
@ -2,6 +2,7 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -18,6 +19,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-title">{{ item.name }}</div>
|
<div class="card-title">{{ item.name }}</div>
|
||||||
<div class="card-description">{{ item.short_description|default:'' }}</div>
|
<div class="card-tags">
|
||||||
|
{% for tag in item.app.info.tags|slice:":3" %}{% trans tag %}{% if not forloop.last %}・{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -596,8 +596,8 @@ footer {
|
|||||||
display: block;
|
display: block;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 10rem;
|
width: 11.5rem;
|
||||||
padding: 1rem;
|
padding: 1rem 0.5rem;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
transition: border .2s ease-in-out;
|
transition: border .2s ease-in-out;
|
||||||
@ -619,10 +619,17 @@ footer {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-description {
|
.card-tags {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: var(--bs-secondary);
|
color: var(--bs-secondary);
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
|
|
||||||
|
/* Show ellipsis after 3 lines. */
|
||||||
|
/* Standardized in CSS Overflow Module Level 4 */
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-icon span,
|
.card-icon span,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user