fix(interface): don't shrink thumbs when filename is truncated and center thumbs

This commit is contained in:
IllusionMan1212
2022-04-29 01:57:31 +03:00
parent 8aa355cf55
commit ca8ed611a4
2 changed files with 2 additions and 2 deletions

View File

@@ -226,7 +226,7 @@ const RenderCell: React.FC<{ colKey?: ColumnKey; dirId?: number; file?: FilePath
case 'name':
return (
<div className="flex flex-row items-center overflow-hidden">
<div className="w-6 h-6 mr-3">
<div className="flex items-center justify-center shrink-0 w-6 h-6 mr-3">
<FileThumb
hasThumbnailOverride={hasNewThumbnail}
file={row}

View File

@@ -22,7 +22,7 @@ export default function FileThumb(props: {
if (client?.data_path && (props.file.has_local_thumbnail || props.hasThumbnailOverride)) {
return (
<img
className="mt-0.5 pointer-events-none z-90"
className="pointer-events-none z-90"
src={appPropsContext?.convertFileSrc(
`${client.data_path}/thumbnails/${props.locationId}/${props.file.temp_cas_id}.webp`
)}