Skip to content

Commit 2068c7d

Browse files
committed
Ellipsed content title in delete notification
1 parent 39e7683 commit 2068c7d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/bundle/Resources/public/scss/_notifications-modal.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@
7474
display: flex;
7575
}
7676

77-
.description__text {
78-
font-size: $ibexa-text-font-size-medium;
79-
77+
.description__title {
8078
&--permanently-deleted {
8179
color: $ibexa-color-danger-500;
8280
font-size: $ibexa-text-font-size-medium;
8381
}
8482
}
83+
84+
.description__text {
85+
font-size: $ibexa-text-font-size-medium;
86+
}
8587
}
8688

8789
&__item--date {

src/bundle/Resources/views/themes/admin/account/notifications/list_item_deleted.html.twig

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@
2525

2626
{% block message %}
2727
{% block content %}
28-
<p class="description__title">
28+
<p class="description__text{% if title|length > 40 %} description__text--ellipsis{% endif %}" title="{{ title }}">
2929
{{ 'notification.title'|trans|desc('Title:') }}
30-
<span class="description__title-item"><strong>{{ title }}</strong></span>
30+
<strong>{{ title }}</strong>
3131
</p>
32-
<p
33-
title="{{ 'notification.no_longer_available'|trans({}, 'ibexa_notifications')|desc('The Content item is no longer available') }}"
34-
class="description__text description__text--permanently-deleted"
35-
>
32+
<p class="description__title description__title--permanently-deleted">
3633
{{ 'notification.no_longer_available'|trans({}, 'ibexa_notifications')|desc('The Content item is no longer available') }}
3734
</p>
3835
{% endblock %}

0 commit comments

Comments
 (0)