mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling(AppTitle & AppContent): Misc changes
- Fixes annoying AppContent whitespace on border - Better styles AppTitle
This commit is contained in:
1 parent
4f9b617854
commit
79669c1710
2 files changed
+7
-6
No files matched your search
@@ -4,7 +4,7 @@ import { AppContentTypes } from "../interface/InterfaceUI";
|
|||||||
|
|
||||||
const useStyles = makeStyles(() => ({
|
const useStyles = makeStyles(() => ({
|
||||||
wrapper: {
|
wrapper: {
|
||||||
height: "67vh",
|
height: "70vh", // NOTE: Taso: Hacky change temp, this should be done automatically tbh. Will refactor at some point
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
},
|
},
|
||||||
box: {
|
box: {
|
||||||
@@ -32,7 +32,7 @@ export const AppContent = ({
|
|||||||
}: AppContentTypes) => {
|
}: AppContentTypes) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
return (
|
return (
|
||||||
<Paper className={classes.wrapper}>
|
<Paper className={classes.wrapper} square>
|
||||||
<Box flexGrow={1} className={classes.box} {...props}>
|
<Box flexGrow={1} className={classes.box} {...props}>
|
||||||
<Paper square elevation={0} className={classes.paper}>
|
<Paper square elevation={0} className={classes.paper}>
|
||||||
<Backdrop
|
<Backdrop
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const useStyle = makeStyles(
|
|||||||
(theme): IUseStyle => ({
|
(theme): IUseStyle => ({
|
||||||
root: ({ backgroundColor }) => ({
|
root: ({ backgroundColor }) => ({
|
||||||
width: "100%",
|
width: "100%",
|
||||||
textAlign: "center",
|
textAlign: "left",
|
||||||
backgroundColor: backgroundColor || theme.palette.background.default,
|
backgroundColor: backgroundColor || theme.palette.background.default,
|
||||||
}),
|
}),
|
||||||
text: ({ color }) => ({
|
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 = ({
|
export const AppTitle = ({
|
||||||
app: { backgroundColor, color, nameLocale },
|
app: { backgroundColor, color, nameLocale },
|
||||||
variant = "h4",
|
variant = "h5",
|
||||||
...props
|
...props
|
||||||
}: IProps) => {
|
}: IProps) => {
|
||||||
const classes = useStyle({ color, backgroundColor });
|
const classes = useStyle({ color, backgroundColor });
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<Box px={2} pt={4} className={classes.root} {...props}>
|
<Box px={2} pt={2} className={classes.root} {...props}>
|
||||||
<Typography className={classes.text} paragraph variant={variant}>
|
<Typography className={classes.text} paragraph variant={variant}>
|
||||||
{t(nameLocale)}
|
{t(nameLocale)}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in new issue
Block a user