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]) => {
|
(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>
|
||||||
|
|
Loading…
Reference in a new issue