From 32bc99a042559ad82be5bf5cd920846e024e7581 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Wed, 6 Sep 2023 14:58:24 +0200 Subject: [PATCH] fix(comments): move new comment instructions placeholder to description Signed-off-by: Grigorii K. Shartsev --- apps/comments/src/components/Comment.vue | 63 +++++++++++++++--------- apps/comments/src/views/Comments.vue | 10 ++++ 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 9301df12a73a4..46a200a66b26e 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -68,26 +68,35 @@ -
- - - - -
+
+
+ + +
+ + + +
+
+
+ {{ t('comments', '"@" for mentions, ":" for emoji, "/" for smart picker') }} +
+
@@ -273,7 +282,6 @@ $comment-padding: 10px; .comment { display: flex; gap: 16px; - position: relative; padding: 5px $comment-padding; &__side { @@ -313,12 +321,19 @@ $comment-padding: 10px; color: var(--color-text-maxcontrast); } + &__editor-group { + position: relative; + } + + &__editor-description { + color: var(--color-text-maxcontrast); + padding-block: var(--default-grid-baseline); + } + &__submit { position: absolute !important; - right: 0; bottom: 0; - // Align with input border - margin: 1px; + right: 0; } &__message { diff --git a/apps/comments/src/views/Comments.vue b/apps/comments/src/views/Comments.vue index 00d39539341e2..bd2d765db5354 100644 --- a/apps/comments/src/views/Comments.vue +++ b/apps/comments/src/views/Comments.vue @@ -315,12 +315,22 @@ export default {