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]) => {
return (
<li key={file.id}>
<Link colored href={`/post/${post.id}#${file.title}`}>
{getIconFromFilename(file.title)}
<Link colored href={`/post/${post.id}#${file.title}`} style={{
display: "flex",
alignItems: "center"
}}>
`` {getIconFromFilename(file.title)}
{file.title || "Untitled file"}
</Link>
</li>