From ae51eed68eeb0b0e0b5c60383c422859504a3fc7 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 20 May 2022 16:34:35 -0500 Subject: use 'trash alternate' --- src/web/src/components/Transfers/TransferGroup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/src/components/Transfers/TransferGroup.js b/src/web/src/components/Transfers/TransferGroup.js index 35955120..3c08e28a 100644 --- a/src/web/src/components/Transfers/TransferGroup.js +++ b/src/web/src/components/Transfers/TransferGroup.js @@ -149,7 +149,7 @@ class TransferGroup extends Component { {(allRetryable || anyCancellable) && allRemovable && } {allRemovable && ) @@ -20,7 +20,7 @@ const ShrinkableButton = ({ iconName, mediaQuery, children, ...rest }) => { content={children} trigger={ } /> diff --git a/src/web/src/components/System/Info.js b/src/web/src/components/System/Info.js index 655ac431..8991777b 100644 --- a/src/web/src/components/System/Info.js +++ b/src/web/src/components/System/Info.js @@ -22,7 +22,7 @@ const Info = ({ state }) => {
getVersion({ forceCheck: true })} @@ -33,7 +33,7 @@ const Info = ({ state }) => { @@ -49,7 +49,7 @@ const Info = ({ state }) => { -- cgit v1.2.3 From 7545477bc78260dccb178f5bfd15288b95b2a824 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 22 May 2022 21:25:16 -0500 Subject: simplify empty search view --- src/web/src/components/Search/List/SearchList.js | 14 +------------- src/web/src/components/Search/Search.css | 6 ++++++ src/web/src/components/Search/Searches.js | 20 +++++++++++++------- 3 files changed, 20 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/web/src/components/Search/List/SearchList.js b/src/web/src/components/Search/List/SearchList.js index c65c949d..92e18220 100644 --- a/src/web/src/components/Search/List/SearchList.js +++ b/src/web/src/components/Search/List/SearchList.js @@ -22,24 +22,13 @@ const SearchList = ({ connecting = false, error = undefined, searches = {}, onRe return ( -
+
} error={error && } > -
-
- - Searches -
-
- No searches to display - } - > @@ -63,7 +52,6 @@ const SearchList = ({ connecting = false, error = undefined, searches = {}, onRe />)}
-
diff --git a/src/web/src/components/Search/Search.css b/src/web/src/components/Search/Search.css index 42912ed5..9f8a9749 100644 --- a/src/web/src/components/Search/Search.css +++ b/src/web/src/components/Search/Search.css @@ -13,6 +13,12 @@ .search-segment { margin-top: 15px !important; height: 78px !important; + display: flex; +} + +.search-segment-icon { + padding-top: 10px; + padding-right: 1em; } .search-card { diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js index 9cc717ad..eed169bc 100644 --- a/src/web/src/components/Search/Searches.js +++ b/src/web/src/components/Search/Searches.js @@ -15,10 +15,12 @@ import { Input, Segment, Button, + Icon, } from 'semantic-ui-react'; import SearchDetail from './Detail/SearchDetail'; import ErrorSegment from '../Shared/ErrorSegment'; +import PlaceholderSegment from '../Shared/PlaceholderSegment'; const Searches = ({ server }) => { const [connecting, setConnecting] = useState(true); @@ -186,6 +188,7 @@ const Searches = ({ server }) => { return ( <> +
} size='big' @@ -201,13 +204,16 @@ const Searches = ({ server }) => { onKeyUp={(e) => e.key === 'Enter' ? create() : ''} />
- + {Object.keys(searches).length === 0 + ? + : + } ) }; -- cgit v1.2.3 From 0d91df32966b1f81f605b9ce1c970ee4d0483da2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 22 May 2022 21:27:11 -0500 Subject: use shrinkable buttons, add icon and placeholder --- src/web/src/components/Transfers/Transfers.css | 12 ++ src/web/src/components/Transfers/Transfers.js | 8 +- .../src/components/Transfers/TransfersHeader.js | 124 ++++++++++++--------- 3 files changed, 85 insertions(+), 59 deletions(-) (limited to 'src') diff --git a/src/web/src/components/Transfers/Transfers.css b/src/web/src/components/Transfers/Transfers.css index f07d4f06..88f9e736 100644 --- a/src/web/src/components/Transfers/Transfers.css +++ b/src/web/src/components/Transfers/Transfers.css @@ -1,6 +1,13 @@ .transfers-header-segment { margin-top: 15px !important; height: 78px !important; + padding-top: 20px !important; + display: flex; +} + +.transfers-segment-icon { + padding-top: 5px; + padding-right: 1em; } .transfers-header-action-button { @@ -38,3 +45,8 @@ .transferlist-filename { word-wrap: break-word !important; } + +.transfers-header-buttons { + display: inline; + margin-left: auto; +} diff --git a/src/web/src/components/Transfers/Transfers.js b/src/web/src/components/Transfers/Transfers.js index 96ac0e1f..5647227d 100644 --- a/src/web/src/components/Transfers/Transfers.js +++ b/src/web/src/components/Transfers/Transfers.js @@ -39,10 +39,10 @@ class Transfers extends Component { return ( <> - - {downloads.length === 0 ? - : - downloads.map((user, index) => + + {downloads.length === 0 + ? + : downloads.map((user, index) => )} diff --git a/src/web/src/components/Transfers/TransfersHeader.js b/src/web/src/components/Transfers/TransfersHeader.js index f9151e5d..4bdce129 100644 --- a/src/web/src/components/Transfers/TransfersHeader.js +++ b/src/web/src/components/Transfers/TransfersHeader.js @@ -4,70 +4,84 @@ import { Segment, Button, Dropdown, + Icon, } from 'semantic-ui-react'; -const TransfersHeader = ({ onRetryAll, onCancelAll, onRemoveAll }) => { +import ShrinkableButton from '../Shared/ShrinkableButton'; + +const TransfersHeader = ({ direction, count, onRetryAll, onCancelAll, onRemoveAll }) => { const [removeOption, setRemoveOption] = useState('Succeeded'); const [cancelOption, setCancelOption] = useState('All'); const [retryOption, setRetryOption] = useState('Errored'); + const empty = count === 0; + return ( <> - -