mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-22 15:40:07 -04:00
fix(interface): don't shrink thumbs when filename is truncated and center thumbs
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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`
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user