From 873262bbaacaed51ad10c67deadd36ec7544b7fc Mon Sep 17 00:00:00 2001 From: Michael Hawkins Date: Wed, 10 Nov 2021 14:26:24 +0800 Subject: [PATCH] MDL-72790 block_timeline: Ensure overdue badge visible at all widths This ensures on narrower screens, the activity title still truncates but the overdue pill always remains visible where present. There is no visual change where an item is not overdue, or on wider screens where there is room to display the full content. --- .../timeline/templates/event-list-item.mustache | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/blocks/timeline/templates/event-list-item.mustache b/blocks/timeline/templates/event-list-item.mustache index bdbd961a82e..ad8d6cd39b2 100644 --- a/blocks/timeline/templates/event-list-item.mustache +++ b/blocks/timeline/templates/event-list-item.mustache @@ -56,13 +56,15 @@ {{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}}
-
- - {{{activityname}}} - {{#overdue}}{{#str}} overdue, block_timeline {{/str}}{{/overdue}} -
+
+
+ {{#overdue}}{{#str}} overdue, block_timeline {{/str}}{{/overdue}} + + {{{activityname}}} +
+
{{#courseview}} {{activitystr}}