Padding, margin, font size tweaks on highlight editors

This commit is contained in:
Jackson Harper
2023-03-09 10:23:02 +08:00
parent d0e4c01b45
commit b445c7ebfe
4 changed files with 20 additions and 18 deletions

View File

@ -30,10 +30,10 @@ export const HighlightNoteTextEditArea = (
<VStack css={{ width: '100%' }} key="textEditor">
<StyledTextArea
css={{
my: '$3',
minHeight: '$6',
my: '10px',
minHeight: '200px',
borderRadius: '5px',
p: '16px',
p: '10px',
width: '100%',
marginTop: '16px',
resize: 'vertical',
@ -48,7 +48,7 @@ export const HighlightNoteTextEditArea = (
/>
<HStack alignment="center" distribution="end" css={{ width: '100%' }}>
<Button
style="ctaPill"
style="cancelGeneric"
css={{ mr: '$2' }}
onClick={() => {
props.setIsEditing(false)

View File

@ -49,12 +49,12 @@ export function HighlightView(props: HighlightViewProps): JSX.Element {
</Fragment>
))}
</SpanBox>
<Box css={{ display: 'block', pt: '16px' }}>
{props.highlight.labels?.map(({ name, color }, index) => (
<LabelChip key={index} text={name || ''} color={color} />
))}
</Box>
</StyledQuote>
<Box css={{ display: 'block', pt: '16px' }}>
{props.highlight.labels?.map(({ name, color }, index) => (
<LabelChip key={index} text={name || ''} color={color} />
))}
</Box>
</VStack>
)
}

View File

@ -98,17 +98,18 @@ export function HighlightItem(props: HighlightItemProps): JSX.Element {
</Fragment>
))}
</SpanBox>
<Box css={{ display: 'block', pt: '16px' }}>
{props.highlight.labels?.map((label: Label, index: number) => (
<LabelChip
key={index}
text={label.name || ''}
color={label.color}
/>
))}
</Box>
</StyledQuote>
<Box css={{ display: 'block' }}>
{props.highlight.labels?.map((label: Label, index: number) => (
<LabelChip
key={index}
text={label.name || ''}
color={label.color}
/>
))}
</Box>
{!isEditing && (
<StyledText
css={{

View File

@ -255,6 +255,7 @@ function HighlightList(props: HighlightListProps): JSX.Element {
return (
<HStack
css={{
m: '20px',
height: '100%',
flexGrow: '1',
}}