Skip to content

The VS Code of video editing, built for agents.

TypeScript

feat: add mask icon display in SubItemLayer component

konstantin-pauluse2d070f9680c
diff --git a/apps/web/src/assets/icons/layer-mask-small.svg b/apps/web/src/assets/icons/layer-mask-small.svg
new file mode 100644
index 00000000..8cbca075
--- /dev/null
+++ b/apps/web/src/assets/icons/layer-mask-small.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M7.5 6.5H7C6.7239 6.5 6.5 6.7239 6.5 7V7.5M9.5 6.5H11.5M13.5 6.5H14C14.2761 6.5 14.5 6.7239 14.5 7V7.5M6.5 9.5V11.5M6.5 13.5V14C6.5 14.2761 6.7239 14.5 7 14.5H7.5M14.5 9.5V14C14.5 14.2761 14.2761 14.5 14 14.5H9.5" stroke="currentColor" stroke-linecap="round"/>
+<circle cx="13.5" cy="13.5" r="4" stroke="currentColor"/>
+</svg>
diff --git a/apps/web/src/components/timeline/layers/sub-item.tsx b/apps/web/src/components/timeline/layers/sub-item.tsx
index 1e068460..4f71c5f8 100644
--- a/apps/web/src/components/timeline/layers/sub-item.tsx
+++ b/apps/web/src/components/timeline/layers/sub-item.tsx
@@ -91,6 +91,11 @@ export function SubItemLayer(props: LayerRowProps) {
<Icon name={props.expanded ? "chevron-down" : "chevron-right"} class="hover:text-foreground" />
</Show>
</button>
+ <Show when={entity().has(Mask)}>
+ <div class="size-4 shrink-0 flex items-center justify-center overflow-clip mr-0.5">
+ <Icon name="layer-mask-small" />
+ </div>
+ </Show>
<span class="text-xs px-0.5 shrink-0 whitespace-nowrap text-foreground">
{name()}
</span>