Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bundles/media/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "media",
"name": "Media Hub",
"version": "1.1.2",
"version": "1.1.3",
"description": "News aggregation, RSS feeds, YouTube channels, podcasts, a daily spoken briefing read by the local voice, playlists, smart folders, email digests",
"type": "mcp-server",
"author": "Crow",
Expand Down
2 changes: 1 addition & 1 deletion bundles/media/panel/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export default {
if (hasLibrary) tabs.push({ id: "library", label: "Library" });
if (hasIptv) tabs.push({ id: "live", label: "Live" });
if (hasKodi) tabs.push({ id: "remote", label: "Remote" });
const tabNav = `<div style="display:flex;gap:0.5rem;margin-bottom:1rem;border-bottom:1px solid var(--crow-border);padding-bottom:0.5rem">
const tabNav = `<div class="media-tabs" style="display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:1rem;border-bottom:1px solid var(--crow-border);padding-bottom:0.5rem">
${tabs.map((t) => `<a href="/dashboard/media?tab=${t.id}" style="padding:0.4rem 0.75rem;border-radius:4px;text-decoration:none;font-size:0.85rem;${tab === t.id ? "background:var(--crow-accent);color:var(--crow-accent-contrast)" : "color:var(--crow-text-secondary)"}">${t.label}</a>`).join("")}
</div>`;

Expand Down
2 changes: 1 addition & 1 deletion registry/add-ons.json
Original file line number Diff line number Diff line change
Expand Up @@ -3310,7 +3310,7 @@
{
"id": "media",
"name": "Media Hub",
"version": "1.1.2",
"version": "1.1.3",
"description": "News aggregation, RSS feeds, YouTube channels, podcasts, a daily spoken briefing read by the local voice, playlists, smart folders, email digests",
"type": "mcp-server",
"author": "Crow",
Expand Down
8 changes: 8 additions & 0 deletions tests/media-panel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,11 @@ test("the page script is plain JavaScript inside a template literal: it parses,
assert.doesNotMatch(src.slice(tabStart, tabEnd), /onclick=/, "the Briefings tab has no inline handlers");
assert.doesNotMatch(src, /process\.env\.HOME \|\| "", "\.crow", "bundles"/, "the panel looks for its own instance's installed copy");
});

test("the tab row wraps on a narrow screen instead of widening the page", async () => {
const { document } = await render({ tab: "briefings" });
const nav = document.querySelector(".media-tabs");
assert.ok(nav, "the tab row is there");
assert.match(nav.getAttribute("style"), /flex-wrap:\s*wrap/);
assert.ok(nav.querySelectorAll("a").length >= 7);
});
Loading