diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 18:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 18:08:53 +0300 |
commit | 93d0784e6d8f43ef5a27f506784b4b0d989c0c2b (patch) | |
tree | bba6397c298bf0d42b78992ea16ddea60769be84 /app/assets/javascripts/comment_templates | |
parent | 4c3f961bd94656e64cee5b0ad07b3f49a84338a5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/comment_templates')
4 files changed, 32 insertions, 26 deletions
diff --git a/app/assets/javascripts/comment_templates/components/app.vue b/app/assets/javascripts/comment_templates/components/app.vue index 9e0d2cc73ec..de3229acc78 100644 --- a/app/assets/javascripts/comment_templates/components/app.vue +++ b/app/assets/javascripts/comment_templates/components/app.vue @@ -3,21 +3,21 @@ export default {}; </script> <template> - <div class="row gl-mt-5"> - <div class="col-lg-4"> - <h4 class="gl-mt-0"> - {{ __('Comment templates') }} - </h4> - <p> - {{ - __( - 'Comment templates can be used when creating comments inside issues, merge requests, and epics.', - ) - }} - </p> - </div> - <div class="col-lg-8"> - <keep-alive><router-view /></keep-alive> + <div class="settings-section gl-mt-3"> + <div class="settings-sticky-header"> + <div class="settings-sticky-header-inner"> + <h4 class="gl-my-0"> + {{ __('Comment templates') }} + </h4> + </div> </div> + <p class="gl-text-secondary"> + {{ + __( + 'Comment templates can be used when creating comments inside issues, merge requests, and epics.', + ) + }} + </p> + <keep-alive><router-view /></keep-alive> </div> </template> diff --git a/app/assets/javascripts/comment_templates/components/form.vue b/app/assets/javascripts/comment_templates/components/form.vue index 47efccc3d0c..6bdf1b313cb 100644 --- a/app/assets/javascripts/comment_templates/components/form.vue +++ b/app/assets/javascripts/comment_templates/components/form.vue @@ -112,7 +112,7 @@ export default { <template> <gl-form - class="new-note common-note-form gl-mb-6" + class="new-note common-note-form" data-testid="comment-template-form" @submit.prevent="onSubmit" > diff --git a/app/assets/javascripts/comment_templates/components/list.vue b/app/assets/javascripts/comment_templates/components/list.vue index 52bebfd050c..46d6b49297d 100644 --- a/app/assets/javascripts/comment_templates/components/list.vue +++ b/app/assets/javascripts/comment_templates/components/list.vue @@ -44,14 +44,18 @@ export default { </script> <template> - <div class="gl-border-t gl-pt-4"> + <div class="settings-section"> <gl-loading-icon v-if="loading" size="lg" /> <template v-else> - <h5 class="gl-font-lg" data-testid="title"> - <gl-sprintf :message="__('My comment templates (%{count})')"> - <template #count>{{ count }}</template> - </gl-sprintf> - </h5> + <div class="settings-sticky-header"> + <div class="settings-sticky-header-inner"> + <h4 class="gl-my-0" data-testid="title"> + <gl-sprintf :message="__('My comment templates (%{count})')"> + <template #count>{{ count }}</template> + </gl-sprintf> + </h4> + </div> + </div> <ul class="gl-list-style-none gl-p-0 gl-m-0"> <list-item v-for="template in savedReplies" :key="template.id" :template="template" /> </ul> diff --git a/app/assets/javascripts/comment_templates/pages/index.vue b/app/assets/javascripts/comment_templates/pages/index.vue index 72a94dafc58..daa4ba689a7 100644 --- a/app/assets/javascripts/comment_templates/pages/index.vue +++ b/app/assets/javascripts/comment_templates/pages/index.vue @@ -52,10 +52,12 @@ export default { <template> <div> - <h5 class="gl-mt-0 gl-font-lg"> - {{ __('Add new comment template') }} - </h5> - <create-form @saved="refetchSavedReplies" /> + <div class="settings-section"> + <h5 class="gl-mt-0 gl-font-lg"> + {{ __('Add new comment template') }} + </h5> + <create-form @saved="refetchSavedReplies" /> + </div> <list :loading="$apollo.queries.savedReplies.loading" :saved-replies="savedReplies" |