🚸 feat: The caption of the display file when the table height is 's'.(#28)

This commit is contained in:
jarvis2f 2025-02-07 16:41:46 +08:00
parent 02a4af9dad
commit 74367f7353

View file

@ -95,7 +95,9 @@ function FilePath({ file }: { file: TelegramFile }) {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent> <TooltipContent>
<div className="max-w-80 text-wrap rounded overflow-y-scroll">{file.localPath}</div> <div className="max-w-80 overflow-y-scroll text-wrap rounded">
{file.localPath}
</div>
</TooltipContent> </TooltipContent>
</Tooltip> </Tooltip>
); );
@ -148,7 +150,11 @@ export default function FileExtra({ file, rowHeight }: FileExtraProps) {
if (rowHeight === "s") { if (rowHeight === "s") {
return ( return (
<TooltipProvider> <TooltipProvider>
{file.fileName ? <FileName file={file} /> : <FileTime file={file} />} {file.fileName ? (
<FileName file={file} />
) : (
<FileCaption file={file} rowHeight={rowHeight} />
)}
</TooltipProvider> </TooltipProvider>
); );
} }