From 94687493846ec16a915b9c1c2af975ee226f283f Mon Sep 17 00:00:00 2001 From: Josef Spitzlberger <38983450+spitzlbergerj@users.noreply.github.com> Date: Fri, 21 Jun 2019 13:05:40 +0200 Subject: [PATCH 1/2] added three class names in order to design the news article better with css, three more class-names were introduced: newsfeed-desc, newsfeed-desc, newsfeed-desc --- modules/default/newsfeed/newsfeed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/default/newsfeed/newsfeed.js b/modules/default/newsfeed/newsfeed.js index 3bb38d0a..ffbd000b 100644 --- a/modules/default/newsfeed/newsfeed.js +++ b/modules/default/newsfeed/newsfeed.js @@ -103,7 +103,7 @@ Module.register("newsfeed",{ // this.config.showFullArticle is a run-time configuration, triggered by optional notifications if (!this.config.showFullArticle && (this.config.showSourceTitle || this.config.showPublishDate)) { var sourceAndTimestamp = document.createElement("div"); - sourceAndTimestamp.className = "light small dimmed"; + sourceAndTimestamp.className = "newsfeed-source light small dimmed"; if (this.config.showSourceTitle && this.newsItems[this.activeItem].sourceTitle !== "") { sourceAndTimestamp.innerHTML = this.newsItems[this.activeItem].sourceTitle; @@ -166,14 +166,14 @@ Module.register("newsfeed",{ if(!this.config.showFullArticle){ var title = document.createElement("div"); - title.className = "bright medium light" + (!this.config.wrapTitle ? " no-wrap" : ""); + title.className = "newsfeed-title bright medium light" + (!this.config.wrapTitle ? " no-wrap" : ""); title.innerHTML = this.newsItems[this.activeItem].title; wrapper.appendChild(title); } if (this.isShowingDescription) { var description = document.createElement("div"); - description.className = "small light" + (!this.config.wrapDescription ? " no-wrap" : ""); + description.className = "newsfeed-desc small light" + (!this.config.wrapDescription ? " no-wrap" : ""); var txtDesc = this.newsItems[this.activeItem].description; description.innerHTML = (this.config.truncDescription ? (txtDesc.length > this.config.lengthDescription ? txtDesc.substring(0, this.config.lengthDescription) + "..." : txtDesc) : txtDesc); wrapper.appendChild(description); From a6eb3ad037e549ef7a4b8a19cdf0b39973b36d47 Mon Sep 17 00:00:00 2001 From: Josef Spitzlberger <38983450+spitzlbergerj@users.noreply.github.com> Date: Fri, 21 Jun 2019 13:08:36 +0200 Subject: [PATCH 2/2] added three more class names to 'newsfeed.js' added to 'newsfeed.js' in order to design the news article better with css, three more class-names were introduced: newsfeed-desc, newsfeed-desc, newsfeed-desc --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b89b1bc..d2ba49e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ❤️ **Donate:** Enjoying MagicMirror²? [Please consider a donation!](https://magicmirror.builders/donate) With your help we can continue to improve the MagicMirror² core. +## [2.7.2] - 2019-06-21 + +Added to `newsfeed.js`: in order to design the news article better with css, three more class-names were introduced: newsfeed-desc, newsfeed-desc, newsfeed-desc + ## [2.7.1] - 2019-04-02 Fixed `package.json` version number.