Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@
"hideSection": "Hide section",
"reorderSection": "Reorder section",
"resetOrder": "Reset section order",
"sectionsHeading": "Sections",
"addSection": "Custom Section",
"tabDocument": "Document"
},
Expand Down
1 change: 1 addition & 0 deletions messages/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@
"hideSection": "Sembunyikan bagian",
"reorderSection": "Ubah urutan bagian",
"resetOrder": "Setel ulang urutan bagian",
"sectionsHeading": "Bagian",
"addSection": "Bagian Khusus",
"tabDocument": "Dokumen"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ export function EditorSectionOrderReset() {
<TooltipTrigger
render={
<Button
size="icon-xs"
size="icon-sm"
variant="ghost"
className="ml-auto"
disabled={disabled}
onClick={() => resetSectionOrder()}
/>
Expand Down
7 changes: 6 additions & 1 deletion src/components/editor/editor-sidebar-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,16 @@ export function EditorSidebarContent() {
</TabsTrigger>
))}
</TabsList>
<EditorSectionOrderReset />
</div>

<TabsContent value="editor">
<ScrollArea id="tour-editor-sections" className={PANEL_HEIGHT}>
<div className="flex items-center justify-end px-4 pt-4">
<h3 className="text-sm font-medium sr-only">
{t("sectionsHeading")}
</h3>
<EditorSectionOrderReset />
</div>
<EditorSectionList />
</ScrollArea>
</TabsContent>
Expand Down