mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
Timestamp: set line-height
This commit is contained in:
parent
dd9dfc0a9f
commit
63b3a37d86
@ -23,6 +23,7 @@ const Timestamp = (props: TimestampProps): ReactElement | null => {
|
||||
relative,
|
||||
dateNotRelative,
|
||||
fontSize,
|
||||
lineHeight,
|
||||
...rest
|
||||
} = {
|
||||
time: true,
|
||||
@ -62,7 +63,7 @@ const Timestamp = (props: TimestampProps): ReactElement | null => {
|
||||
title={stamp.format(DateFormat + ' ' + TimeFormat)}
|
||||
>
|
||||
{time && (
|
||||
<Text flexShrink={0} color={color} fontSize={fontSize}>
|
||||
<Text lineHeight={lineHeight} flexShrink={0} color={color} fontSize={fontSize}>
|
||||
{timestamp}
|
||||
</Text>
|
||||
)}
|
||||
@ -70,6 +71,7 @@ const Timestamp = (props: TimestampProps): ReactElement | null => {
|
||||
<Text
|
||||
flexShrink={0}
|
||||
color={color}
|
||||
lineHeight={lineHeight}
|
||||
fontSize={fontSize}
|
||||
display={time ? ['none', hovering ? 'block' : 'none'] : 'block'}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user