From 7989dda106497ff2ccea04ff9b9f1621a3bffe67 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 14 Jan 2022 15:33:52 +0400 Subject: [PATCH] Post Lock: Adjust avatar design and update message --- .../src/components/post-locked-modal/index.js | 55 +++++++++++-------- .../components/post-locked-modal/style.scss | 10 +++- 2 files changed, 39 insertions(+), 26 deletions(-) diff --git a/packages/editor/src/components/post-locked-modal/index.js b/packages/editor/src/components/post-locked-modal/index.js index 3576dc91dc5dd0..8b516c5f8d5b01 100644 --- a/packages/editor/src/components/post-locked-modal/index.js +++ b/packages/editor/src/components/post-locked-modal/index.js @@ -185,6 +185,8 @@ export default function PostLockedModal() { src={ userAvatar } alt={ __( 'Avatar' ) } className="editor-post-locked-modal__avatar" + width={ 64 } + height={ 64 } /> ) }
@@ -214,29 +216,36 @@ export default function PostLockedModal() {

) } { ! isTakeover && ( -

- { createInterpolateElement( - userDisplayName - ? sprintf( - /* translators: %s: user's display name */ - __( - '%s is currently working on this post (), which means you cannot make changes, unless you take over.' - ), - userDisplayName - ) - : __( - 'Another user is currently working on this post (), which means you cannot make changes, unless you take over.' - ), - { - strong: , - PreviewLink: ( - - { __( 'preview' ) } - - ), - } - ) } -

+ <> +

+ { createInterpolateElement( + userDisplayName + ? sprintf( + /* translators: %s: user's display name */ + __( + '%s is currently working on this post (), which means you cannot make changes, unless you take over.' + ), + userDisplayName + ) + : __( + 'Another user is currently working on this post (), which means you cannot make changes, unless you take over.' + ), + { + strong: , + PreviewLink: ( + + { __( 'preview' ) } + + ), + } + ) } +

+

+ { __( + 'If you take over, the other user will lose editing control to the post, but their changes will be saved.' + ) } +

+ ) }