Merge pull request #249 from AutoMaker-Org/fix/new-project-dialog-path-overflow

fix: new project path overflow
This commit is contained in:
Web Dev Cody
2025-12-23 15:42:44 -05:00
committed by GitHub

View File

@@ -245,18 +245,21 @@ export function NewProjectModal({
{/* Workspace Directory Display */} {/* Workspace Directory Display */}
<div <div
className={cn( className={cn(
'flex items-center gap-2 text-sm', 'flex items-start gap-2 text-sm',
errors.workspaceDir ? 'text-red-500' : 'text-muted-foreground' errors.workspaceDir ? 'text-red-500' : 'text-muted-foreground'
)} )}
> >
<Folder className="w-4 h-4 shrink-0" /> <Folder className="w-4 h-4 shrink-0 mt-0.5" />
<span className="flex-1 min-w-0"> <span className="flex-1 min-w-0 flex flex-col gap-1">
{isLoadingWorkspace ? ( {isLoadingWorkspace ? (
'Loading workspace...' 'Loading workspace...'
) : workspaceDir ? ( ) : workspaceDir ? (
<> <>
Will be created at:{' '} <span>Will be created at:</span>
<code className="text-xs bg-muted px-1.5 py-0.5 rounded truncate"> <code
className="text-xs bg-muted px-1.5 py-0.5 rounded truncate block max-w-full"
title={projectPath || workspaceDir}
>
{projectPath || workspaceDir} {projectPath || workspaceDir}
</code> </code>
</> </>