From 639a755be20a087153eb794330f7fd9e22bd39a7 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 4 Dec 2024 11:51:08 +0100 Subject: [PATCH] Move the Import from a File button within the toolbar --- src/js/component/item/actions.jsx | 12 +++++++----- src/js/component/item/actions/import.jsx | 3 ++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/js/component/item/actions.jsx b/src/js/component/item/actions.jsx index 9fe5d666..0fc5171f 100644 --- a/src/js/component/item/actions.jsx +++ b/src/js/component/item/actions.jsx @@ -182,6 +182,13 @@ const ItemActionsDesktop = memo(props => { )} + {(itemsSource === 'collection' || itemsSource === 'top') && ( + + )} { !isTrash && ( @@ -248,11 +255,6 @@ const ItemActionsDesktop = memo(props => { ) } - 100 } tabIndex={ -2 } diff --git a/src/js/component/item/actions/import.jsx b/src/js/component/item/actions/import.jsx index 2d502d50..186a5790 100644 --- a/src/js/component/item/actions/import.jsx +++ b/src/js/component/item/actions/import.jsx @@ -73,6 +73,7 @@ const ImportAction = ({ disabled, onFocusNext, onFocusPrev, tabIndex }) => { ref={fileInputRef} tabIndex={-1} type="file" + title="Import From a File (BiBTeX, RIS, etc.)" />