mirror of
https://github.com/harness/drone.git
synced 2025-05-21 03:20:15 +08:00
Fix: spacing in timestamp and commit range (#1028)
This commit is contained in:
parent
3a3d11f589
commit
b655edcda7
@ -133,8 +133,8 @@ const CommitRangeDropdown: React.FC<CommitRangeDropdownProps> = ({
|
||||
{`${allCommits.length - index} ${prCommit.title}`}
|
||||
</Text>
|
||||
<FlexExpander />
|
||||
<Text font={{ variation: FontVariation.SMALL_SEMI }} style={{ whiteSpace: 'nowrap' }}>
|
||||
<ReactTimeago date={prCommit.committer?.when || ''} />
|
||||
<Text font={{ variation: FontVariation.SMALL_SEMI }}>
|
||||
<ReactTimeago style={{ whiteSpace: 'nowrap' }} date={prCommit.committer?.when || ''} />
|
||||
</Text>
|
||||
</Layout.Horizontal>
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
.timeWrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-small);
|
||||
gap: var(--spacing-2);
|
||||
|
||||
.timezone {
|
||||
width: 15%;
|
||||
|
@ -41,7 +41,7 @@ export function DateTimeWithLocalContentInline({ time }: { time: number }): JSX.
|
||||
<Text color={Color.GREY_600} className={css.time}>
|
||||
{moment(time).format(DATE_PARSE_FORMAT)}
|
||||
</Text>
|
||||
<Text color={Color.GREY_600}>{getString('at')}</Text>
|
||||
<Text color={Color.GREY_450}>{getString('at')}</Text>
|
||||
<Text color={Color.GREY_600} className={css.time}>
|
||||
{moment(time).format(TIME_PARSE_FORMAT)}
|
||||
</Text>
|
||||
|
Loading…
Reference in New Issue
Block a user