From d7a069288205666d0e52e4fa429bc89bcd3da54d Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Tue, 8 Aug 2023 10:58:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(website)=20homogenizes=20font=20si?= =?UTF-8?q?zes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Different font sizes were used in different places, the menu was different that the header, the user profil menu had different sizes as well. This commit homogenizes the sizes. --- .../features/Contents/components/Contents/Contents.tsx | 6 ++++-- .../apps/standalone_site/src/features/Header/Header.tsx | 9 +++++---- .../src/features/Profile/components/ProfilePage.tsx | 2 +- .../AccountSettings/components/AccountSettings.tsx | 2 +- .../apps/standalone_site/src/styles/theme.extend.ts | 8 ++++++++ 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/frontend/apps/standalone_site/src/features/Contents/components/Contents/Contents.tsx b/src/frontend/apps/standalone_site/src/features/Contents/components/Contents/Contents.tsx index d9028ea695..5d2bc02076 100644 --- a/src/frontend/apps/standalone_site/src/features/Contents/components/Contents/Contents.tsx +++ b/src/frontend/apps/standalone_site/src/features/Contents/components/Contents/Contents.tsx @@ -1,4 +1,4 @@ -import { Box, Text } from 'grommet'; +import { Box, Heading, Text } from 'grommet'; import { StyledLink } from 'lib-components'; import { Fragment } from 'react'; import { defineMessages, useIntl } from 'react-intl'; @@ -38,7 +38,9 @@ const Contents = ({ playlistId }: ContentsProps) => { justify="between" margin={{ bottom: 'small' }} > - {intl.formatMessage(sample.title)} + + {intl.formatMessage(sample.title)} + >((_props, ref) => { } dropAlign={{ top: 'bottom', right: 'right' }} dropContent={ - + { @@ -211,7 +211,7 @@ const Header = forwardRef>((_props, ref) => { }} > - {intl.formatMessage(messages.profile)} + {intl.formatMessage(messages.profile)} >((_props, ref) => { setIsDropOpen(false); }} > - {intl.formatMessage(messages.settings)} + {' '} + {intl.formatMessage(messages.settings)} >((_props, ref) => { }} > - {intl.formatMessage(messages.logout)} + {intl.formatMessage(messages.logout)} } diff --git a/src/frontend/apps/standalone_site/src/features/Profile/components/ProfilePage.tsx b/src/frontend/apps/standalone_site/src/features/Profile/components/ProfilePage.tsx index e26a4c67ab..a234d1a1ac 100644 --- a/src/frontend/apps/standalone_site/src/features/Profile/components/ProfilePage.tsx +++ b/src/frontend/apps/standalone_site/src/features/Profile/components/ProfilePage.tsx @@ -43,7 +43,7 @@ export const ProfilePage = () => { return ( - {intl.formatMessage(messages.header)} + {intl.formatMessage(messages.header)} { return ( - {intl.formatMessage(messages.header)} + {intl.formatMessage(messages.header)}