@streamscloud/blocks 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,7 @@ const visibleTabs = $derived.by(() => {
86
86
  }
87
87
  return tabs;
88
88
  });
89
- const sidebarVisible = $derived(visibleTabs.some((t) => t.id !== 'recommended'));
89
+ const sidebarVisible = $derived(visibleTabs.length > 0);
90
90
  const handleTabChange = (id) => {
91
91
  preferredTab = id;
92
92
  activeSidebarTab = id;
@@ -141,7 +141,7 @@ const handleHeaderResize = (node) => {
141
141
  };
142
142
  let videoAreaHeight = $state(0);
143
143
  const sidebarSlotFits = $derived.by(() => {
144
- if (isMobileView || videoAreaHeight === 0) {
144
+ if (!sidebarVisible || isMobileView || videoAreaHeight === 0) {
145
145
  return false;
146
146
  }
147
147
  const videoW = videoAreaHeight * LAYOUT.ratio;
@@ -230,7 +230,7 @@ const itemActions = $derived.by(() => {
230
230
  icon: a.iconColor ? { src: a.icon, color: a.iconColor } : a.icon,
231
231
  callback: a.callback
232
232
  }));
233
- if (sidebarSlotFits && (!sidebarCollapsed || sidebarVisible)) {
233
+ if (sidebarSlotFits) {
234
234
  actions.push({ icon: IconInfo, callback: () => (sidebarCollapsed = !sidebarCollapsed) });
235
235
  }
236
236
  return actions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/blocks",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",