diff options
Diffstat (limited to 'apps/web/src/components')
| -rw-r--r-- | apps/web/src/components/editor-header.tsx | 3 | ||||
| -rw-r--r-- | apps/web/src/components/editor/properties-panel/index.tsx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/apps/web/src/components/editor-header.tsx b/apps/web/src/components/editor-header.tsx index 45414ecc..a04af269 100644 --- a/apps/web/src/components/editor-header.tsx +++ b/apps/web/src/components/editor-header.tsx @@ -45,8 +45,7 @@ export function EditorHeader() { if (activeProject && newName.trim() && newName !== activeProject.name) {
try {
await renameProject(activeProject.id, newName.trim());
- }
- catch (error) {
+ }catch (error) {
console.error('Failed to rename project:', error);
// Reset to original name on error
setNewName(activeProject.name);
diff --git a/apps/web/src/components/editor/properties-panel/index.tsx b/apps/web/src/components/editor/properties-panel/index.tsx index d30cd0ff..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 truncate w-40" title={value}>{value}</span> + <span className="text-xs text-right truncate overflow-hidden whitespace-nowrap w-40" title={value}>{value}</span> </div> ); } |
