diff --git a/public/contributors/users-grayed.png b/public/contributors/users-grayed.png index 8d1d873e84..2004747575 100644 Binary files a/public/contributors/users-grayed.png and b/public/contributors/users-grayed.png differ diff --git a/src/domain/communication/discussion/pages/ForumPage.tsx b/src/domain/communication/discussion/pages/ForumPage.tsx index 24a1065adb..8141fa4024 100644 --- a/src/domain/communication/discussion/pages/ForumPage.tsx +++ b/src/domain/communication/discussion/pages/ForumPage.tsx @@ -31,7 +31,7 @@ import TopLevelPageBreadcrumbs from '@/main/topLevelPages/topLevelPageBreadcrumb import { BlockTitle } from '@/core/ui/typography'; const ALL_CATEGORIES = DiscussionCategoryExtEnum.All; -const FORUM_GRAYED_OUT_IMAGE = '/forum/forum-grayed.png'; +const grayedOutForumImgSrc = '/forum/forum-grayed.png'; const useSubscriptionToForum = UseSubscriptionToSubEntity< PlatformDiscussionsQuery['platform']['forum'], @@ -149,7 +149,7 @@ export const ForumPage = ({ dialog }: { dialog?: 'new' }) => { > {!loading && !isAuthenticated ? ( { [theme.breakpoints.up('sm')]: { fontWeight: 'bold', }, - [theme.breakpoints.up('lg')]: { - marginTop: theme.spacing(10), - marginBottom: theme.spacing(-10), - }, })} /> ) : ( diff --git a/src/domain/community/user/ContributorsView.tsx b/src/domain/community/user/ContributorsView.tsx index dc5aac58e1..e2a0d0a557 100644 --- a/src/domain/community/user/ContributorsView.tsx +++ b/src/domain/community/user/ContributorsView.tsx @@ -27,7 +27,7 @@ import { useColumns } from '@/core/ui/grid/GridContext'; import GridProvider from '@/core/ui/grid/GridProvider'; import { Identifiable } from '@/core/utils/Identifiable'; -const USERS_GRAYED_OUT_IMAGE = '/contributors/users-grayed.png'; +const grayedOutUsersImgSrc = '/contributors/users-grayed.png'; export const ITEMS_PER_PAGE = 32; const userToContributorCard = (user: UserContributorFragment): ContributorCardSquareProps => { @@ -155,17 +155,13 @@ const ContributorsView = ({ {!showUsers && ( ({ [theme.breakpoints.up('sm')]: { fontWeight: 'bold', }, - [theme.breakpoints.up('lg')]: { - marginTop: theme.spacing(10), - marginBottom: theme.spacing(-10), - }, })} /> diff --git a/src/domain/shared/components/Backdrops/ImageBackdrop.tsx b/src/domain/shared/components/Backdrops/ImageBackdrop.tsx index 84f630e47f..37dc4095e4 100644 --- a/src/domain/shared/components/Backdrops/ImageBackdrop.tsx +++ b/src/domain/shared/components/Backdrops/ImageBackdrop.tsx @@ -1,4 +1,4 @@ -import React, { FC } from 'react'; +import { FC } from 'react'; import { useTranslation } from 'react-i18next'; import useNavigate from '@/core/routing/useNavigate'; import { BackdropProps } from './BackdropWithMessage'; @@ -11,33 +11,47 @@ const Root = styled(Box)(() => ({ overflow: 'hidden', })); -const Background = styled(ImageFadeIn)(() => ({ +const Background = styled(ImageFadeIn)(({ theme }) => ({ + display: 'grid', + placeContent: 'center', + width: '100%', height: '100%', + objectFit: 'cover', + + [theme.breakpoints.up('sm')]: { + width: '100%', + }, + + [theme.breakpoints.down('sm')]: { + height: 160, + }, })); -const Message = styled(Box)(() => ({ +const Message = styled(Box)(({ theme }) => ({ position: 'absolute', - top: 0, - width: '100%', - height: '100%', - display: 'flex', - flexWrap: 'wrap', - textAlign: 'center', - alignItems: 'center', + inset: 0, + + display: 'grid', + placeContent: 'center', + + [theme.breakpoints.down('sm')]: { + padding: theme.spacing(0.5), + }, })); const ButtonsWrapper = styled(Box)(({ theme }) => ({ - flexBasis: '100%', textAlign: 'center', '& > button': { - marginLeft: theme.spacing(2), - marginRight: theme.spacing(2), - }, -})); + marginLeft: theme.spacing(1), + marginRight: theme.spacing(1), + marginTop: theme.spacing(1), -const FlexSpacer = styled(Box)(() => ({ - flexBasis: '50%', + [theme.breakpoints.up('sm')]: { + marginLeft: theme.spacing(2), + marginRight: theme.spacing(2), + }, + }, })); interface ImageBackdropProps extends BackdropProps { @@ -65,23 +79,23 @@ const ImageBackdrop: FC = ({ {show && ( + {children} + - - {t(`components.backdrop.${backdropMessage}` as const, { - blockName: t(`common.blocks.${blockName}` as const), - })} + {t(`components.backdrop.${backdropMessage}`, { blockName: t(`common.blocks.${blockName}`) })} + + - )}