From 79669c1710d0bb5214575d0eace8b6f6ba93f810 Mon Sep 17 00:00:00 2001 From: Taso Date: Wed, 18 Nov 2020 13:09:06 -0500 Subject: [PATCH] styling(AppTitle & AppContent): Misc changes - Fixes annoying AppContent whitespace on border - Better styles AppTitle --- phone/src/ui/components/AppContent.tsx | 4 ++-- phone/src/ui/components/AppTitle.tsx | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/phone/src/ui/components/AppContent.tsx b/phone/src/ui/components/AppContent.tsx index 6908dfc..eb6cb0a 100644 --- a/phone/src/ui/components/AppContent.tsx +++ b/phone/src/ui/components/AppContent.tsx @@ -4,7 +4,7 @@ import { AppContentTypes } from "../interface/InterfaceUI"; const useStyles = makeStyles(() => ({ wrapper: { - height: "67vh", + height: "70vh", // NOTE: Taso: Hacky change temp, this should be done automatically tbh. Will refactor at some point overflow: "auto", }, box: { @@ -32,7 +32,7 @@ export const AppContent = ({ }: AppContentTypes) => { const classes = useStyles(); return ( - + ({ root: ({ backgroundColor }) => ({ width: "100%", - textAlign: "center", + textAlign: "left", backgroundColor: backgroundColor || theme.palette.background.default, }), text: ({ color }) => ({ @@ -26,16 +26,17 @@ const useStyle = makeStyles( }), }) ); - +// Taso: Maybe we should pass an icon (maybe fa?) as a prop as well at somepoint +// but need to think about the best way to do that for standardization sake. export const AppTitle = ({ app: { backgroundColor, color, nameLocale }, - variant = "h4", + variant = "h5", ...props }: IProps) => { const classes = useStyle({ color, backgroundColor }); const { t } = useTranslation(); return ( - + {t(nameLocale)}