From 857fd591997f7ac1cf93e8bd5e2a1f4c72c828a4 Mon Sep 17 00:00:00 2001 From: Rupin Khandelwal Date: Fri, 11 Nov 2022 10:18:53 -0300 Subject: [PATCH] fixing text color for different themes --- .../templates/homeFeed/HomeFeedContainer.tsx | 11 ++++++----- .../web/components/templates/library/LibraryList.tsx | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx b/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx index ffdbb93d3..ec4f7a0c9 100644 --- a/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx +++ b/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx @@ -1,4 +1,4 @@ -import { Box, HStack, VStack } from './../../elements/LayoutPrimitives' +import { Box, HStack, SpanBox, VStack } from './../../elements/LayoutPrimitives' import Dropzone from 'react-dropzone' import type { LibraryItem, @@ -828,7 +828,9 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element { > {({ getRootProps, getInputProps, acceptedFiles, fileRejections }) => (
-

Drag n drop files anywhere below

+ + Drag n drop files anywhere below + {!props.isValidating && props.items.length == 0 ? ( - {/* Temporary code */}
Files: @@ -949,8 +950,8 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
  • {fileName}
  • ))} -
    {/* Temporary code */} - +
    {' '} + {/* Temporary code */} {props.showAddLinkModal && ( props.setShowAddLinkModal(false)} /> )} diff --git a/packages/web/components/templates/library/LibraryList.tsx b/packages/web/components/templates/library/LibraryList.tsx index 1ced0a1b2..1347fb1f8 100644 --- a/packages/web/components/templates/library/LibraryList.tsx +++ b/packages/web/components/templates/library/LibraryList.tsx @@ -54,10 +54,12 @@ export function LibraryList(props: LibraryListProps): JSX.Element { return ( - + {({ getRootProps, getInputProps, acceptedFiles, fileRejections }) => (
    -

    Drag n drop files anywhere below

    + + Drag n drop files anywhere below + )} - {/* Temporary code */}
    Files: @@ -122,8 +123,8 @@ export function LibraryList(props: LibraryListProps): JSX.Element {
  • {fileName}
  • ))} -
    {/* Temporary code */} - +
    {' '} + {/* Temporary code */} {/* Extra padding at bottom to give space for scrolling */}