The VS Code of video editing, built for agents.
TypeScript
Enhance TextPanel component with font size controls
konstantin-paulus5b7846382f5b
diff --git a/apps/web/src/assets/icons/text.font-size.svg b/apps/web/src/assets/icons/text.font-size.svgnew file mode 100644index 00000000..08dc6737--- /dev/null+++ b/apps/web/src/assets/icons/text.font-size.svg@@ -0,0 +1,4 @@+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M15.127 15.5H14.2031L13.4717 13.4404H10.5312L9.7998 15.5H8.87695L11.5469 8.22754H12.4561L15.127 15.5ZM10.8086 12.6592H13.1953L12.0303 9.37793H11.9736L10.8086 12.6592Z" fill="currentColor"/>+<path opacity="0.5" d="M17.5 16.5C17.7761 16.5 18 16.7239 18 17V19C18 19.2761 17.7761 19.5 17.5 19.5C17.2239 19.5 17 19.2761 17 19V18.5H7V19C7 19.2761 6.77614 19.5 6.5 19.5C6.22386 19.5 6 19.2761 6 19V17C6 16.7239 6.22386 16.5 6.5 16.5C6.77614 16.5 7 16.7239 7 17V17.5H17V17C17 16.7239 17.2239 16.5 17.5 16.5Z" fill="currentColor"/>+</svg>diff --git a/apps/web/src/components/sidebar-right/inspector/text.tsx b/apps/web/src/components/sidebar-right/inspector/text.tsxindex e7524400..bc29b0bd 100644--- a/apps/web/src/components/sidebar-right/inspector/text.tsx+++ b/apps/web/src/components/sidebar-right/inspector/text.tsx@@ -191,11 +191,13 @@ export function TextPanel(props: TextPanelProps) {<ControlledTextFieldclass="flex-1"+ icon={<Icon name="text.font-size" />}value={fontSize()}onNumber={(v) => editor.editProperty(entity(), 'fontSize', v)}step={1}min={1}autoSelect+ sliderEnabledlimitEvents/></ControlRow>