From de1f7ea90649624ec1c54615b91ca6d4bbce79d2 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 3 Dec 2020 21:10:41 -0700 Subject: [PATCH] Move file manager buttons beside the breadcrumb, other tweaks --- .../components/elements/SubNavigation.tsx | 15 +++---- .../server/files/FileManagerBreadcrumbs.tsx | 2 +- .../server/files/FileManagerContainer.tsx | 41 ++++++++++--------- 3 files changed, 31 insertions(+), 27 deletions(-) diff --git a/resources/scripts/components/elements/SubNavigation.tsx b/resources/scripts/components/elements/SubNavigation.tsx index 6b8379697..8da2cf44a 100644 --- a/resources/scripts/components/elements/SubNavigation.tsx +++ b/resources/scripts/components/elements/SubNavigation.tsx @@ -5,23 +5,24 @@ import config from '../../../../tailwind.config'; const SubNavigation = styled.div` ${tw`w-full bg-neutral-700 shadow overflow-x-auto`}; - + & > div { ${tw`flex items-center text-sm mx-auto px-2`}; max-width: 1200px; - + & > a, & > div { ${tw`inline-block py-3 px-4 text-neutral-300 no-underline whitespace-no-wrap transition-all duration-150`}; - + &:not(:first-of-type) { ${tw`ml-2`}; } - - &:active, &:hover { + + &:hover { ${tw`text-neutral-100`}; } - - &:active, &:hover, &.active { + + &:active, &.active { + ${tw`text-neutral-100`}; box-shadow: inset 0 -2px ${config.theme.colors.cyan['500']}; } } diff --git a/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx b/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx index 11b7abde7..9b1596f5c 100644 --- a/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx +++ b/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx @@ -44,7 +44,7 @@ export default ({ withinFileEditor, isNewFile }: Props) => { }; return ( -
+
{(files && files.length > 0 && !params?.action) ? { return ( - - - +
+ + + + + + +
+ + + + + +
+
+
+
{ !files ? @@ -83,22 +102,6 @@ export default () => {
} - - -
- - - - - -
-
-
}