Center icon and text in post list li

This commit is contained in:
Max Leiter 2022-12-18 18:35:55 -08:00
parent e4b215b7a8
commit e41dc292b8

View file

@ -127,8 +127,11 @@ const ListItem = ({
(file: Pick<PostWithFiles, "files">["files"][0]) => { (file: Pick<PostWithFiles, "files">["files"][0]) => {
return ( return (
<li key={file.id}> <li key={file.id}>
<Link colored href={`/post/${post.id}#${file.title}`}> <Link colored href={`/post/${post.id}#${file.title}`} style={{
{getIconFromFilename(file.title)} display: "flex",
alignItems: "center"
}}>
`` {getIconFromFilename(file.title)}
{file.title || "Untitled file"} {file.title || "Untitled file"}
</Link> </Link>
</li> </li>