fix(web): prevent crowding in narrow changes panel and dockview tabs (#727)
This commit is contained in:
@@ -88,12 +88,16 @@ export function FileRow({
|
||||
/>
|
||||
<button type="button" className="min-w-0 text-left cursor-pointer" title={file.path}>
|
||||
<p className="flex text-foreground text-xs min-w-0">
|
||||
{folder && <span className="text-foreground/60 truncate shrink">{folder}/</span>}
|
||||
<span className="font-medium text-foreground whitespace-nowrap shrink-0">{name}</span>
|
||||
{folder && (
|
||||
<span className="text-foreground/60 truncate min-w-0 [flex-shrink:9999]">
|
||||
{folder}/
|
||||
</span>
|
||||
)}
|
||||
<span className="font-medium text-foreground truncate min-w-0">{name}</span>
|
||||
</p>
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-2 shrink-0">
|
||||
<FileRowActions path={file.path} onDiscard={onDiscard} onEditFile={onEditFile} />
|
||||
<LineStat added={file.plus} removed={file.minus} />
|
||||
<FileStatusIcon status={file.status} />
|
||||
|
||||
Reference in New Issue
Block a user