mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
web: fix toc headings alignment (#9143)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -201,7 +201,14 @@ function TableOfContents(props: TableOfContentsProps) {
|
||||
{item.hasChildren ? (
|
||||
<Button
|
||||
variant="secondary"
|
||||
sx={{ bg: "transparent", p: 0, borderRadius: 100 }}
|
||||
sx={{
|
||||
bg: "transparent",
|
||||
p: 0,
|
||||
borderRadius: 100,
|
||||
width: 14,
|
||||
height: 14,
|
||||
flexShrink: 0
|
||||
}}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
expanded ? collapse() : expand();
|
||||
@@ -214,7 +221,17 @@ function TableOfContents(props: TableOfContentsProps) {
|
||||
)}
|
||||
</Button>
|
||||
) : (
|
||||
<Circle size={5} color="icon-secondary" />
|
||||
<Flex
|
||||
sx={{
|
||||
width: 14,
|
||||
height: 14,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
flexShrink: 0
|
||||
}}
|
||||
>
|
||||
<Circle size={5} color="icon-secondary" />
|
||||
</Flex>
|
||||
)}
|
||||
{item.data.title}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user