mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-12-12 01:42:19 +00:00
[newsfeed] fix header layout issue (#3946)
... fixes #3944 introduced with prettier njk linting --------- Co-authored-by: veeck <gitkraken@veeck.de> Co-authored-by: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>
This commit is contained in:
@@ -33,6 +33,7 @@ planned for 2026-01-01
|
||||
- [core] refactor: replace `express-ipfilter` with lightweight custom middleware (#3917) - This fixes security issue [CVE-2023-42282](https://github.com/advisories/GHSA-78xj-cgh5-2h22), which is not very likely to be exploitable in MagicMirror² setups, but still should be fixed.
|
||||
- fixed the Environment Canada weather URL (#3912) and now converts a windspeed of 'calm' to 0
|
||||
- fixed problems with daylight-saving-time in weather provider `openmeto` (#3930, #3931)
|
||||
- [newsfeed] fixed header layout issue introduced with prettier njk linting (#3946)
|
||||
|
||||
### Updated
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
{% if (config.showSourceTitle and item.sourceTitle) or config.showPublishDate %}
|
||||
<div class="newsfeed-source light small dimmed">
|
||||
{% if item.sourceTitle and config.showSourceTitle %}
|
||||
{{ item.sourceTitle }}{% if config.showPublishDate %},{% else %}:{% endif %}
|
||||
{{ item.sourceTitle }}{% if config.showPublishDate %}, {% else %}:{% endif %}
|
||||
{% endif %}
|
||||
{% if config.showPublishDate %}{{ item.publishDate }}:{% endif %}
|
||||
</div>
|
||||
@@ -63,7 +63,7 @@
|
||||
{% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %}
|
||||
<div class="newsfeed-source light small dimmed">
|
||||
{% if sourceTitle and config.showSourceTitle %}
|
||||
{{ escapeText(sourceTitle, config.dangerouslyDisableAutoEscaping) }}{% if config.showPublishDate %},{% else %}:{% endif %}
|
||||
{{ escapeText(sourceTitle, config.dangerouslyDisableAutoEscaping) }}{% if config.showPublishDate %}, {% else %}:{% endif %}
|
||||
{% endif %}
|
||||
{% if config.showPublishDate %}{{ publishDate }}:{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -11,8 +11,9 @@ describe("Electron app environment", () => {
|
||||
});
|
||||
|
||||
it("should open browserwindow", async () => {
|
||||
const module = await helpers.getElement("#module_0_helloworld");
|
||||
await expect(module.textContent()).resolves.toContain("Test Display Header");
|
||||
// Wait for module content to be rendered, not just the module wrapper
|
||||
const moduleContent = await helpers.getElement("#module_0_helloworld .module-content");
|
||||
await expect(moduleContent.textContent()).resolves.toContain("Test Display Header");
|
||||
expect(global.electronApp.windows()).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user