fix(ui) add round for line height values

This commit is contained in:
Bohdan Triapitsyn
2026-07-29 20:01:01 +03:00
parent c88dd16d2a
commit 5c687aca6d
2 changed files with 6 additions and 3 deletions
@@ -72,9 +72,10 @@ const getDisplayFileName = (file: string): string => {
const TurnChangedFileChipContent = React.memo(({ file, interactive = false }: { file: TurnChangedFile; interactive?: boolean }) => (
<span
className={cn(
'inline-flex max-w-full items-center gap-1.5 rounded-lg border border-border/30 bg-muted/30 px-2 py-1 text-xs leading-[1.35] text-muted-foreground',
'inline-flex max-w-full items-center gap-1.5 rounded-lg border border-border/30 bg-muted/30 px-2 py-1 text-xs text-muted-foreground',
interactive && 'transition-colors hover:border-border/60 hover:bg-interactive-hover'
)}
style={{ lineHeight: 'round(1.35em, 1px)' }}
>
<FileTypeIcon filePath={file.file} className="h-3.5 w-3.5 flex-shrink-0" />
<span className="max-w-52 truncate text-foreground/80" title={file.file}>{getDisplayFileName(file.file)}</span>