mirror of
https://github.com/docmost/docmost.git
synced 2026-09-12 08:21:32 +08:00
minor fixes
This commit is contained in:
@@ -137,7 +137,7 @@ export default function SubpageItem({
|
||||
<Stack gap={5}>
|
||||
{isLoading ? (
|
||||
<div style={{ paddingLeft: `${(depth + 2) * 20 + 4}px` }}>
|
||||
...{t("loading")}
|
||||
{t("Loading")}...
|
||||
</div>
|
||||
) : (
|
||||
children.map((child) => (
|
||||
|
||||
@@ -110,7 +110,7 @@ export const SubpagesMenu = React.memo(
|
||||
leftSection={sortBy === "default" ? <IconCheck size={14} /> : null}
|
||||
onClick={() => updateSort("default")}
|
||||
>
|
||||
{t("default")}
|
||||
{t("Default")}
|
||||
</Menu.Item>
|
||||
<Menu.Item
|
||||
leftSection={sortBy === "title-asc" ? <IconCheck size={14} /> : null}
|
||||
|
||||
@@ -22,8 +22,8 @@ export function sortSubpages(
|
||||
}
|
||||
|
||||
return sortedItems.sort((a, b) => {
|
||||
const result = (a.title || "untitled").localeCompare(
|
||||
b.title || "untitled",
|
||||
const result = (a.title || "").localeCompare(
|
||||
b.title || "",
|
||||
undefined,
|
||||
{
|
||||
sensitivity: "base",
|
||||
|
||||
Reference in New Issue
Block a user