mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
Changes from fix/new-project-dialog-path-overflow
This commit is contained in:
@@ -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>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user