Skip to content

The open-source CapCut alternative

fix: improve property item display by adding truncation and tooltip for long values

ayush18pop6de16395b794
diff --git a/apps/web/src/components/editor/properties-panel/index.tsx b/apps/web/src/components/editor/properties-panel/index.tsx
index 9e28850f..50f6c5f9 100644
--- a/apps/web/src/components/editor/properties-panel/index.tsx
+++ b/apps/web/src/components/editor/properties-panel/index.tsx
@@ -103,7 +103,7 @@ function PropertyItem({ label, value }: { label: string; value: string }) {
return (
<div className="flex justify-between">
<Label className="text-xs text-muted-foreground">{label}</Label>
- <span className="text-xs text-right">{value}</span>
+ <span className="text-xs text-right truncate overflow-hidden whitespace-nowrap w-40" title={value}>{value}</span>
</div>
);
}