diff --git a/src/components/account.tsx b/src/components/account.tsx index cca7f47ce8..d4c252654d 100644 --- a/src/components/account.tsx +++ b/src/components/account.tsx @@ -286,9 +286,10 @@ const Account = ({ ) : withAccountNote && ( )} diff --git a/src/components/scrollable-list.tsx b/src/components/scrollable-list.tsx index ffce6e844f..8a352034a0 100644 --- a/src/components/scrollable-list.tsx +++ b/src/components/scrollable-list.tsx @@ -71,6 +71,8 @@ interface IScrollableList extends VirtuosoProps { onRefresh?: () => Promise; /** Extra class names on the Virtuoso element. */ className?: string; + /** Extra class names on the list element. */ + listClassName?: string; /** Class names on each item container. */ itemClassName?: string; /** `id` attribute on the Virtuoso element. */ @@ -96,6 +98,7 @@ const ScrollableList = React.forwardRef(({ onScrollToTop, onLoadMore, className, + listClassName, itemClassName, id, hasMore, @@ -233,9 +236,10 @@ const ScrollableList = React.forwardRef(({ itemContent={renderItem} initialTopMostItemIndex={initialIndex} rangeChanged={handleRangeChange} + className={className} style={style} context={{ - listClassName: className, + listClassName, itemClassName, }} components={{ diff --git a/src/components/status-list.tsx b/src/components/status-list.tsx index ed1f391b1f..621a659f00 100644 --- a/src/components/status-list.tsx +++ b/src/components/status-list.tsx @@ -232,7 +232,7 @@ const StatusList: React.FC = ({ placeholderComponent={() => } placeholderCount={20} ref={node} - className={clsx('divide-y divide-solid divide-gray-200 dark:divide-gray-800', { + listClassName={clsx('divide-y divide-solid divide-gray-200 dark:divide-gray-800', { 'divide-none': divideType !== 'border', }, className)} itemClassName={clsx({ diff --git a/src/components/ui/accordion/accordion.tsx b/src/components/ui/accordion/accordion.tsx index f415dac084..7e959c2278 100644 --- a/src/components/ui/accordion/accordion.tsx +++ b/src/components/ui/accordion/accordion.tsx @@ -81,7 +81,7 @@ const Accordion: React.FC = ({ headline, children, menu, expanded =
((props, ref) => { {...props} ref={ref} type='checkbox' - className='h-4 w-4 rounded border-2 border-gray-300 text-primary-600 focus:ring-primary-500 dark:border-gray-800 dark:bg-gray-900' + className='h-4 w-4 rounded border-2 border-gray-300 text-primary-600 focus:ring-primary-500 black:bg-black dark:border-gray-800 dark:bg-gray-900' /> ); }); diff --git a/src/features/admin/moderation-log.tsx b/src/features/admin/moderation-log.tsx index 6486185eb1..004d87997a 100644 --- a/src/features/admin/moderation-log.tsx +++ b/src/features/admin/moderation-log.tsx @@ -56,7 +56,7 @@ const ModerationLog = () => { emptyMessage={intl.formatMessage(messages.emptyMessage)} hasMore={hasMore} onLoadMore={handleLoadMore} - className='divide-y divide-solid divide-gray-200 dark:divide-gray-800' + listClassName='divide-y divide-solid divide-gray-200 dark:divide-gray-800' > {items.map(item => item && ( diff --git a/src/features/admin/tabs/awaiting-approval.tsx b/src/features/admin/tabs/awaiting-approval.tsx index b59a9a56c6..1b2d0c6a63 100644 --- a/src/features/admin/tabs/awaiting-approval.tsx +++ b/src/features/admin/tabs/awaiting-approval.tsx @@ -33,7 +33,7 @@ const AwaitingApproval: React.FC = () => { showLoading={showLoading} scrollKey='awaiting-approval' emptyMessage={intl.formatMessage(messages.emptyMessage)} - className='divide-y divide-solid divide-gray-200 dark:divide-gray-800' + listClassName='divide-y divide-solid divide-gray-200 dark:divide-gray-800' > {accountIds.map(id => (
diff --git a/src/features/admin/tabs/reports.tsx b/src/features/admin/tabs/reports.tsx index d066f34e1f..99ed6be914 100644 --- a/src/features/admin/tabs/reports.tsx +++ b/src/features/admin/tabs/reports.tsx @@ -35,7 +35,7 @@ const Reports: React.FC = () => { showLoading={showLoading} scrollKey='admin-reports' emptyMessage={intl.formatMessage(messages.emptyMessage)} - className='divide-y divide-solid divide-gray-200 dark:divide-gray-800' + listClassName='divide-y divide-solid divide-gray-200 dark:divide-gray-800' > {reports.map(report => report && )} diff --git a/src/features/auth-login/components/consumers-list.tsx b/src/features/auth-login/components/consumers-list.tsx index 799238449c..e236ff1011 100644 --- a/src/features/auth-login/components/consumers-list.tsx +++ b/src/features/auth-login/components/consumers-list.tsx @@ -16,7 +16,7 @@ const ConsumersList: React.FC = () => { if (providers.length > 0) { return ( - + diff --git a/src/features/directory/components/account-card.tsx b/src/features/directory/components/account-card.tsx index 21e0eb89e5..3e28821b19 100644 --- a/src/features/directory/components/account-card.tsx +++ b/src/features/directory/components/account-card.tsx @@ -1,4 +1,3 @@ -import clsx from 'clsx'; import React from 'react'; import { FormattedMessage } from 'react-intl'; @@ -57,7 +56,7 @@ const AccountCard: React.FC = ({ id }) => { diff --git a/src/features/domain-blocks/index.tsx b/src/features/domain-blocks/index.tsx index 17d6f4757a..cf8978ad94 100644 --- a/src/features/domain-blocks/index.tsx +++ b/src/features/domain-blocks/index.tsx @@ -45,7 +45,7 @@ const DomainBlocks: React.FC = () => { onLoadMore={() => handleLoadMore(dispatch)} hasMore={hasMore} emptyMessage={emptyMessage} - className='divide-y divide-gray-200 dark:divide-gray-800' + listClassName='divide-y divide-gray-200 dark:divide-gray-800' > {domains.map((domain) => , diff --git a/src/features/group/group-tags.tsx b/src/features/group/group-tags.tsx index 5bbf5364c8..e3b65b5f4b 100644 --- a/src/features/group/group-tags.tsx +++ b/src/features/group/group-tags.tsx @@ -35,7 +35,7 @@ const GroupTopics: React.FC = (props) => { showLoading={!group || isLoading && tags.length === 0} placeholderComponent={PlaceholderAccount} placeholderCount={3} - className='divide-y divide-solid divide-gray-300 dark:divide-gray-800' + listClassName='divide-y divide-solid divide-gray-300 dark:divide-gray-800' itemClassName='py-3 last:pb-0' emptyMessage={ diff --git a/src/features/notifications/index.tsx b/src/features/notifications/index.tsx index 1740419908..870ce8ad19 100644 --- a/src/features/notifications/index.tsx +++ b/src/features/notifications/index.tsx @@ -164,7 +164,7 @@ const Notifications = () => { onLoadMore={handleLoadOlder} onScrollToTop={handleScrollToTop} onScroll={handleScroll} - className={clsx({ + listClassName={clsx({ 'divide-y divide-gray-200 black:divide-gray-800 dark:divide-primary-800 divide-solid': notifications.size > 0, 'space-y-2': notifications.size === 0, })} diff --git a/src/features/soapbox-config/components/icon-picker-menu.tsx b/src/features/soapbox-config/components/icon-picker-menu.tsx index 8267d83a6f..8287e1fc18 100644 --- a/src/features/soapbox-config/components/icon-picker-menu.tsx +++ b/src/features/soapbox-config/components/icon-picker-menu.tsx @@ -79,7 +79,7 @@ const IconPickerMenu: React.FC = ({ icons, onClose, onPick, sty return (
diff --git a/src/features/status/components/thread-status.tsx b/src/features/status/components/thread-status.tsx index fe43f62ed7..a3674aa685 100644 --- a/src/features/status/components/thread-status.tsx +++ b/src/features/status/components/thread-status.tsx @@ -31,7 +31,7 @@ const ThreadStatus: React.FC = (props): JSX.Element => { return ( ); @@ -445,7 +445,7 @@ const Thread = (props: IThread) => { initialTopMostItemIndex={initialTopMostItemIndex} useWindowScroll={useWindowScroll} itemClassName={itemClassName} - className={ + listClassName={ clsx({ 'h-full': !useWindowScroll, }) diff --git a/src/features/ui/components/modals/birthdays-modal.tsx b/src/features/ui/components/modals/birthdays-modal.tsx index 01afe0db05..d6d17781af 100644 --- a/src/features/ui/components/modals/birthdays-modal.tsx +++ b/src/features/ui/components/modals/birthdays-modal.tsx @@ -28,7 +28,7 @@ const BirthdaysModal = ({ onClose }: IBirthdaysModal) => { {accountIds.map(id => diff --git a/src/features/ui/components/modals/dislikes-modal.tsx b/src/features/ui/components/modals/dislikes-modal.tsx index fadfef168e..7689d70476 100644 --- a/src/features/ui/components/modals/dislikes-modal.tsx +++ b/src/features/ui/components/modals/dislikes-modal.tsx @@ -40,7 +40,7 @@ const DislikesModal: React.FC = ({ onClose, statusId }) => { {accountIds.map(id => diff --git a/src/features/ui/components/modals/event-participants-modal.tsx b/src/features/ui/components/modals/event-participants-modal.tsx index bb8614d470..85324546da 100644 --- a/src/features/ui/components/modals/event-participants-modal.tsx +++ b/src/features/ui/components/modals/event-participants-modal.tsx @@ -40,7 +40,7 @@ const EventParticipantsModal: React.FC = ({ onClose, st {accountIds.map(id => diff --git a/src/features/ui/components/modals/favourites-modal.tsx b/src/features/ui/components/modals/favourites-modal.tsx index 9fd1fbf57c..d2b9b9ea77 100644 --- a/src/features/ui/components/modals/favourites-modal.tsx +++ b/src/features/ui/components/modals/favourites-modal.tsx @@ -47,7 +47,7 @@ const FavouritesModal: React.FC = ({ onClose, statusId }) => { = ({ onClose, statusId }) => { body = ( {accountIds.map(id => diff --git a/src/features/ui/components/modals/reactions-modal.tsx b/src/features/ui/components/modals/reactions-modal.tsx index 8b9c923cfe..431430edf4 100644 --- a/src/features/ui/components/modals/reactions-modal.tsx +++ b/src/features/ui/components/modals/reactions-modal.tsx @@ -98,9 +98,10 @@ const ReactionsModal: React.FC = ({ onClose, statusId, reaction 0, })} + listClassName='max-w-full' itemClassName='pb-3' > {accounts.map((account) => diff --git a/src/features/ui/components/modals/reblogs-modal.tsx b/src/features/ui/components/modals/reblogs-modal.tsx index c86c731add..5107fa8810 100644 --- a/src/features/ui/components/modals/reblogs-modal.tsx +++ b/src/features/ui/components/modals/reblogs-modal.tsx @@ -48,7 +48,7 @@ const ReblogsModal: React.FC = ({ onClose, statusId }) => {