Skip to content

Commit

Permalink
Style last update authoring text in pno form
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Oct 16, 2024
1 parent a932218 commit ed1b7e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export function Form({ detail, initialFormValues }: FormProps) {
<>
<hr />

<p
<LastUpdateText
title={detail.operationDate}
>{`Dernière modification par ${detail.logbookMessage.message.updatedBy} ${customDayjs(detail.operationDate).fromNow()}.`}</p>
>{`Dernière modification par ${detail.logbookMessage.message.updatedBy} ${customDayjs(detail.operationDate).fromNow()}.`}</LastUpdateText>
</>
)}
</>
Expand Down Expand Up @@ -187,6 +187,12 @@ const AuthorTrigramInput = styled(FormikTextInput)`
width: 120px;
`

const LastUpdateText = styled.p`
color: ${p => p.theme.color.slateGray};
font-style: italic;
margin-top: 16px;
`

const ActionWrapper = styled.div`
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ export function Content({ detail, isValidatingOnChange, onClose, onSubmit, onVer
<>
<hr />

<p
<LastUpdateText
title={detail.operationDate}
>{`Dernière modification par ${detail.logbookMessage.message.updatedBy} ${customDayjs(detail.operationDate).fromNow()}.`}</p>
>{`Dernière modification par ${detail.logbookMessage.message.updatedBy} ${customDayjs(detail.operationDate).fromNow()}.`}</LastUpdateText>
</>
)}
</Body>
Expand Down Expand Up @@ -313,6 +313,12 @@ const Body = styled.div`
}
`

const LastUpdateText = styled.p`
color: ${p => p.theme.color.slateGray};
font-style: italic;
margin-top: 16px;
`

const Footer = styled.div`
border-top: 1px solid ${p => p.theme.color.lightGray};
display: flex;
Expand Down

0 comments on commit ed1b7e4

Please sign in to comment.