diff --git a/src/lang/en/home.json b/src/lang/en/home.json index cf031f1615..31b3b242a1 100644 --- a/src/lang/en/home.json +++ b/src/lang/en/home.json @@ -123,7 +123,12 @@ "none": "None", "visible": "Visible" }, - "filename_scrollable": "Filename scrollable", + "list_item_filename_overflow": "List item filename overflow", + "list_item_filename_overflow_options": { + "ellipsis": "Ellipsis", + "scrollable": "Scrollable", + "multi_line": "Multi-line" + }, "open_item_on_checkbox": "Open item on Checkbox", "open_item_on_checkbox_options": { "direct": "Direct", diff --git a/src/pages/home/folder/ListItem.tsx b/src/pages/home/folder/ListItem.tsx index ee725f6e20..a92fb55675 100644 --- a/src/pages/home/folder/ListItem.tsx +++ b/src/pages/home/folder/ListItem.tsx @@ -38,7 +38,7 @@ export const ListItem = (props: { obj: StoreObj; index: number }) => { const { show } = useContextMenu({ id: 1 }) const { pushHref, to } = useRouter() const isShouldOpenItem = useOpenItemWithCheckbox() - const filenameScrollable = () => local["filename_scrollable"] === "true" + const filenameStyle = () => local["list_item_filename_overflow"] return ( {