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