diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index c1ad3fc28..bacd7dc95 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -764,7 +764,7 @@ "grid": "Grid", "list": "List", "collapse_all_notes": "Collapse all notes", - "expand_all_children": "Expand all children", + "expand_tooltip": "Expands the direct children of this collection (one level deep). For more options, press the arrow on the right.", "collapse": "Collapse", "expand": "Expand", "expand_first_level": "Expand direct children", diff --git a/apps/client/src/widgets/react/Button.tsx b/apps/client/src/widgets/react/Button.tsx index 0732fbb0c..6089f1709 100644 --- a/apps/client/src/widgets/react/Button.tsx +++ b/apps/client/src/widgets/react/Button.tsx @@ -81,9 +81,10 @@ export function ButtonGroup({ children }: { children: ComponentChildren }) { ) } -export function SplitButton({ text, icon, children, onClick }: { +export function SplitButton({ text, icon, children, ...restProps }: { text: string; icon?: string; + title?: string; /** Click handler for the main button component (not the split). */ onClick?: () => void; /** The children inside the dropdown of the split. */ @@ -91,7 +92,7 @@ export function SplitButton({ text, icon, children, onClick }: { }) { return ( - diff --git a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx index 80627151f..374633c49 100644 --- a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx @@ -120,6 +120,7 @@ function SplitButtonPropertyView({ note, property }: { note: FNote, property: Sp return clickContext && property.onClick(clickContext)} > {parentComponent && } diff --git a/apps/client/src/widgets/ribbon/collection-properties-config.tsx b/apps/client/src/widgets/ribbon/collection-properties-config.tsx index 41cf35234..f5fa6d5f3 100644 --- a/apps/client/src/widgets/ribbon/collection-properties-config.tsx +++ b/apps/client/src/widgets/ribbon/collection-properties-config.tsx @@ -95,7 +95,7 @@ export const bookPropertiesConfig: Record = { }, { label: t("book_properties.expand"), - title: t("book_properties.expand_all_children"), + title: t("book_properties.expand_tooltip"), type: "split-button", icon: "bx bx-move-vertical", onClick: buildExpandListHandler(1),