Center icon and text in post list li
This commit is contained in:
parent
e4b215b7a8
commit
e41dc292b8
1 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue