Skip to content

Commit b41b8a2

Browse files
chore: reverse the order on mobile
1 parent bc75811 commit b41b8a2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

apps/web/components/ArticleToolbar/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ export function ArticleToolbar({
6464
};
6565

6666
return (
67-
<div className="space-y-4">
67+
<div className="flex flex-col gap-4">
68+
{mode !== "focus" && hasHeadings && (
69+
<div className="order-first md:order-last">
70+
<TableOfContents headings={headings} />
71+
</div>
72+
)}
73+
6874
<div className="flex w-full">
6975
{hasAudio && (
7076
<ModeButton
@@ -89,8 +95,6 @@ export function ArticleToolbar({
8995
)}
9096

9197
{mode === "focus" && <FocusPanel controller={speedReaderController} />}
92-
93-
{mode !== "focus" && hasHeadings && <TableOfContents headings={headings} />}
9498
</div>
9599
);
96100
}

0 commit comments

Comments
 (0)