fix: status alignment and font sizes

This commit is contained in:
José Oliveira 2021-11-15 18:18:57 +00:00
parent 7b1697fff0
commit a35dd3e77e
2 changed files with 21 additions and 12 deletions

View file

@ -10,7 +10,7 @@ import PromptWhenDirty from 'src/components/PromptWhenDirty'
import { MainStatus } from 'src/components/Status' import { MainStatus } from 'src/components/Status'
import { Tooltip } from 'src/components/Tooltip' import { Tooltip } from 'src/components/Tooltip'
import { ActionButton } from 'src/components/buttons' import { ActionButton } from 'src/components/buttons'
import { Label1, Info3, H3 } from 'src/components/typography' import { Label1, P, H3 } from 'src/components/typography'
import { import {
OVERRIDE_AUTHORIZED, OVERRIDE_AUTHORIZED,
OVERRIDE_REJECTED, OVERRIDE_REJECTED,
@ -39,7 +39,8 @@ const fieldStyles = {
position: 'relative', position: 'relative',
width: 280, width: 280,
height: 48, height: 48,
padding: [[0, 4, 4, 0]] padding: [[0, 4, 4, 0]],
marginTop: 2
}, },
label: { label: {
color: comet, color: comet,
@ -65,7 +66,8 @@ const fieldStyles = {
editing: { editing: {
'& > div': { '& > div': {
'& > input': { '& > input': {
padding: 0 padding: 0,
fontSize: 14
} }
} }
} }
@ -85,7 +87,7 @@ const EditableField = ({ editing, field, value, size, ...props }) => {
{!editing && ( {!editing && (
<> <>
<Label1 className={classes.label}>{field.label}</Label1> <Label1 className={classes.label}>{field.label}</Label1>
<Info3>{value}</Info3> <P>{value}</P>
</> </>
)} )}
{editing && ( {editing && (
@ -145,10 +147,12 @@ const EditableCard = ({
<div> <div>
<Card className={classes.card}> <Card className={classes.card}>
<CardContent> <CardContent>
<div className={classes.cardHeader}> <div className={classes.headerWrapper}>
{titleIcon} <div className={classes.cardHeader}>
<H3 className={classes.cardTitle}>{title}</H3> {titleIcon}
<Tooltip width={304}></Tooltip> <H3 className={classes.cardTitle}>{title}</H3>
<Tooltip width={304}></Tooltip>
</div>
{state && ( {state && (
<div className={classnames(label1ClassNames)}> <div className={classnames(label1ClassNames)}>
<MainStatus statuses={[authorized]} /> <MainStatus statuses={[authorized]} />

View file

@ -16,20 +16,26 @@ export default {
color: spring4 color: spring4
}, },
editButton: { editButton: {
marginTop: 30, marginTop: 20,
display: 'flex', display: 'flex',
justifyContent: 'right' justifyContent: 'right'
}, },
deleteButton: { deleteButton: {
marginRight: 8 marginRight: 8
}, },
headerWrapper: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
height: 40
},
editingWrapper: { editingWrapper: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'space-between' justifyContent: 'space-between',
marginTop: 20
}, },
replace: { replace: {
marginTop: 30,
marginRight: 5 marginRight: 5
}, },
input: { input: {
@ -39,7 +45,6 @@ export default {
marginRight: 5 marginRight: 5
}, },
editingButtons: { editingButtons: {
marginTop: 30,
display: 'flex', display: 'flex',
justifyContent: 'right' justifyContent: 'right'
}, },