feat(ui): 单文件时文件标题居中

This commit is contained in:
肖应宇 2026-03-24 10:41:16 +08:00
parent ff0c25db54
commit 5b3157f83e
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ export function ArtifactFileDetail({
<div className="flex min-w-0 grow items-center justify-center">
<ArtifactTitle>
{isWriteFile ? (
<div className=" w-full overflow-hidden text-ellipsis whitespace-nowrap px-2">{truncateMiddle(getFileName(filepath), 50)}</div>
<div className=" w-full text-center overflow-hidden text-ellipsis whitespace-nowrap px-2">{truncateMiddle(getFileName(filepath), 50)}</div>
) : (
<DropdownSelector
value={filepath}