From 067fc9e45d30988b922df040eff3c2e96823e40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 24 Mar 2024 17:38:34 +0100 Subject: [PATCH] Black mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/dropdown-menu/dropdown-menu.tsx | 4 ++-- src/components/event-preview.tsx | 2 +- src/components/group-card.tsx | 2 +- src/components/groups/popover/group-popover.tsx | 2 +- src/components/landing-gradient.tsx | 2 +- src/components/modal-root.tsx | 2 +- src/components/sidebar-menu.tsx | 6 +++--- src/components/sidebar-navigation-link.tsx | 2 +- src/components/site-logo.tsx | 2 +- src/components/status-list.tsx | 2 +- src/components/thumb-navigation-link.tsx | 4 ++-- src/components/ui/card/card.tsx | 3 ++- src/components/ui/column/column.tsx | 4 ++-- src/components/ui/divider/divider.tsx | 2 +- src/components/ui/layout/layout.tsx | 4 ++-- src/components/ui/menu/menu.tsx | 4 ++-- src/components/ui/modal/modal.tsx | 2 +- src/components/ui/toast/toast.tsx | 2 +- src/features/account/components/header.tsx | 4 ++-- .../chats/components/chat-page/chat-page.tsx | 6 +++--- src/features/chats/components/ui/pane.tsx | 2 +- src/features/event/components/event-header.tsx | 6 +++--- src/features/group/components/group-header.tsx | 2 +- .../components/placeholder-event-preview.tsx | 2 +- .../components/placeholder-group-card.tsx | 2 +- .../components/placeholder-notification.tsx | 2 +- .../placeholder/components/placeholder-status.tsx | 2 +- src/features/public-timeline/index.tsx | 2 +- .../soapbox-config/components/site-preview.tsx | 2 +- src/features/ui/components/background-shapes.tsx | 2 +- src/features/ui/components/navbar.tsx | 2 +- src/features/ui/components/profile-dropdown.tsx | 2 +- src/features/ui/components/theme-selector.tsx | 4 ++++ src/features/ui/index.tsx | 2 +- src/hooks/useTheme.ts | 5 ++--- src/init/soapbox-head.tsx | 8 ++++---- src/pages/chats-page.tsx | 2 +- src/pages/home-page.tsx | 4 ++-- src/schemas/soapbox/settings.ts | 2 +- src/styles/components/datepicker.scss | 12 +++++++----- src/styles/components/detailed-status.scss | 2 +- src/styles/emoji-picker.scss | 4 ++++ src/styles/navigation.scss | 2 +- tailwind.config.ts | 4 ++++ 44 files changed, 77 insertions(+), 63 deletions(-) diff --git a/src/components/dropdown-menu/dropdown-menu.tsx b/src/components/dropdown-menu/dropdown-menu.tsx index ab40f164e..2c94f9be0 100644 --- a/src/components/dropdown-menu/dropdown-menu.tsx +++ b/src/components/dropdown-menu/dropdown-menu.tsx @@ -293,7 +293,7 @@ const DropdownMenu = (props: IDropdownMenu) => { data-testid='dropdown-menu' ref={refs.setFloating} className={ - clsx('z-[1001] w-56 rounded-md bg-white py-1 shadow-lg transition-opacity duration-100 focus:outline-none dark:bg-gray-900 dark:ring-2 dark:ring-primary-700', { + clsx('z-[1001] w-56 rounded-md bg-white py-1 shadow-lg transition-opacity duration-100 focus:outline-none black:bg-black dark:bg-gray-900 dark:ring-2 dark:ring-primary-700', { 'opacity-0 pointer-events-none': !isOpen, }) } @@ -318,7 +318,7 @@ const DropdownMenu = (props: IDropdownMenu) => {
diff --git a/src/components/event-preview.tsx b/src/components/event-preview.tsx index ec1031662..710075764 100644 --- a/src/components/event-preview.tsx +++ b/src/components/event-preview.tsx @@ -51,7 +51,7 @@ const EventPreview: React.FC = ({ status, className, hideAction, )); return ( -
+
{floatingAction && action}
diff --git a/src/components/group-card.tsx b/src/components/group-card.tsx index e95914efa..08df1a45f 100644 --- a/src/components/group-card.tsx +++ b/src/components/group-card.tsx @@ -17,7 +17,7 @@ interface IGroupCard { const GroupCard: React.FC = ({ group }) => { return ( {/* Group Cover Image */} diff --git a/src/components/groups/popover/group-popover.tsx b/src/components/groups/popover/group-popover.tsx index 6aa214cd9..44d1d5244 100644 --- a/src/components/groups/popover/group-popover.tsx +++ b/src/components/groups/popover/group-popover.tsx @@ -45,7 +45,7 @@ const GroupPopover = (props: IGroupPopoverContainer) => { content={ {/* Group Cover Image */} diff --git a/src/components/landing-gradient.tsx b/src/components/landing-gradient.tsx index 1cef99843..ed27fe214 100644 --- a/src/components/landing-gradient.tsx +++ b/src/components/landing-gradient.tsx @@ -2,7 +2,7 @@ import React from 'react'; /** Fullscreen gradient used as a backdrop to public pages. */ const LandingGradient: React.FC = () => ( -
+
); export default LandingGradient; diff --git a/src/components/modal-root.tsx b/src/components/modal-root.tsx index 024f59ebc..1c755b995 100644 --- a/src/components/modal-root.tsx +++ b/src/components/modal-root.tsx @@ -232,7 +232,7 @@ const ModalRoot: React.FC = ({ children, onCancel, onClose, type })