diff --git a/public/css/components/dashboard/news.css b/public/css/components/dashboard/news.css index a5bca7afe..0253a1789 100644 --- a/public/css/components/dashboard/news.css +++ b/public/css/components/dashboard/news.css @@ -96,6 +96,11 @@ } } +.widgets-news{ + padding: 0 .5rem; + overflow-y: auto; +} + .widgets-news img { max-width: 100%; @@ -165,10 +170,22 @@ .fhc-news-items-lg .row:hover{ background-color: var(--fhc-primary); + color: var(--fhc-light) !important; + cursor: pointer; +} + +.fhc-news-items-lg .row .news-truncate span{ + color: var(--fhc-primary); + cursor: pointer; +} + +.fhc-news-items-lg .row:hover .news-truncate span { color: var(--fhc-light); cursor: pointer; } + + .news-truncate { display: -webkit-box; -webkit-line-clamp: 2; diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js index c9598ce16..8e1fb2c62 100644 --- a/public/js/components/Dashboard/Item.js +++ b/public/js/components/Dashboard/Item.js @@ -189,7 +189,7 @@ export default { -
+
diff --git a/public/js/components/DashboardWidget/News.js b/public/js/components/DashboardWidget/News.js index a6c94b90e..26757d49c 100644 --- a/public/js/components/DashboardWidget/News.js +++ b/public/js/components/DashboardWidget/News.js @@ -23,9 +23,6 @@ export default { sizeClass() { return 'fhc-news-' + ['xs', 'sm', 'md', 'lg'][this.size]; }, - getNewsWidgetStyle() { - return this.width == 1 ? "padding: 1rem 1rem;" : "padding: 0px;" - }, newsList() { //Return news amount depending on widget width and size // let quantity = this.width; @@ -219,7 +216,7 @@ export default { }, template: /*html*/ ` -
+
@@ -239,8 +236,8 @@ export default {