mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Refactor file name display in FileGrid component
This commit is contained in:
@@ -89,7 +89,7 @@ export default function FileGrid({ data }: Props) {
|
||||
|
||||
{/* File data */}
|
||||
<div className='flex h-full w-full flex-col justify-between gap-1.5 px-3 py-1.5'>
|
||||
<span className='line-clamp-2 h-full whitespace-pre-wrap text-balance break-all text-center'>
|
||||
<span className='line-clamp-2 h-full whitespace-pre-wrap text-balance break-all'>
|
||||
{data.fileExtension
|
||||
? data.name.replace(new RegExp(`.${data.fileExtension}$`), "")
|
||||
: data.name}
|
||||
|
||||
Reference in New Issue
Block a user