diff --git a/src/addon/block/timeline/components/events/addon-block-timeline-events.html b/src/addon/block/timeline/components/events/addon-block-timeline-events.html index 0cfddb603..1cebcecc1 100644 --- a/src/addon/block/timeline/components/events/addon-block-timeline-events.html +++ b/src/addon/block/timeline/components/events/addon-block-timeline-events.html @@ -3,13 +3,24 @@

{{ dayEvents.dayTimestamp * 1000 | coreFormatDate:"strftimedayshort" }}

- +

+ + + {{event.timesort * 1000 | coreFormatDate:"strftimetime24" }} + +
@@ -22,4 +33,4 @@ - + \ No newline at end of file diff --git a/src/addon/block/timeline/components/events/events.scss b/src/addon/block/timeline/components/events/events.scss index 36475d624..1c722ae93 100644 --- a/src/addon/block/timeline/components/events/events.scss +++ b/src/addon/block/timeline/components/events/events.scss @@ -21,4 +21,8 @@ ion-app.app-root core-courses-course-progress { } } - +ion-app.app-root addon-block-timeline-events { + a button { + pointer-events: auto; + } +} diff --git a/src/addon/block/timeline/components/events/events.ts b/src/addon/block/timeline/components/events/events.ts index c4d1f413d..a4f50e96a 100644 --- a/src/addon/block/timeline/components/events/events.ts +++ b/src/addon/block/timeline/components/events/events.ts @@ -122,19 +122,14 @@ export class AddonBlockTimelineEventsComponent implements OnChanges { * Action clicked. * * @param {Event} e Click event. - * @param {any} event Calendar event info. + * @param {string} url Url of the action. */ - action(e: Event, event: any): void { + action(e: Event, url: string): void { e.preventDefault(); e.stopPropagation(); - let url; - if (event.action.actionable) { - // Fix URL format. - url = this.textUtils.decodeHTMLEntities(event.action.url); - } else { - url = this.textUtils.decodeHTMLEntities(event.url); - } + // Fix URL format. + url = this.textUtils.decodeHTMLEntities(url); const modal = this.domUtils.showModalLoading(); this.contentLinksHelper.handleLink(url, undefined, this.navCtrl).then((treated) => { diff --git a/src/app/app.scss b/src/app/app.scss index d193d4fc2..a38bb07a0 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -50,6 +50,7 @@ ion-app.app-root { align-items: center !important; > * { margin: 0 auto; + width: 100%; max-width: 600px; } }