Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-28 18:09:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-28 18:09:19 +0300
commit24623a974348595d33cc9be6881b285a026ff13b (patch)
tree20a28aa9b423a65c52ea5ca54c6fcb91dd9ddfd6 /app/assets/javascripts/vue_shared/components/markdown
parent72ba138510cad0a8c4819ef0512153dd4dbced7f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/markdown')
-rw-r--r--app/assets/javascripts/vue_shared/components/markdown/toolbar.vue15
1 files changed, 12 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue b/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue
index 9cf0d0bafb1..1fb290b4ced 100644
--- a/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue
+++ b/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue
@@ -1,5 +1,5 @@
<script>
-import { GlButton, GlLoadingIcon, GlSprintf, GlIcon } from '@gitlab/ui';
+import { GlButton, GlLoadingIcon, GlSprintf, GlIcon, GlTooltipDirective } from '@gitlab/ui';
import EditorModeSwitcher from './editor_mode_switcher.vue';
export default {
@@ -10,6 +10,9 @@ export default {
GlIcon,
EditorModeSwitcher,
},
+ directives: {
+ GlTooltip: GlTooltipDirective,
+ },
props: {
markdownDocsPath: {
type: String,
@@ -47,8 +50,12 @@ export default {
<template>
<div
v-if="showCommentToolBar"
- class="comment-toolbar gl-display-flex gl-flex-direction-row gl-justify-content-space-between gl-mx-2 gl-mb-2 gl-px-2 gl-rounded-bottom-left-base gl-rounded-bottom-right-base"
- :class="{ 'gl-bg-gray-10': showContentEditorSwitcher }"
+ class="comment-toolbar gl-display-flex gl-flex-direction-row gl-mx-2 gl-mb-2 gl-px-2 gl-rounded-bottom-left-base gl-rounded-bottom-right-base"
+ :class="
+ showContentEditorSwitcher
+ ? 'gl-bg-gray-10 gl-justify-content-space-between'
+ : 'gl-justify-content-end'
+ "
>
<editor-mode-switcher
v-if="showEditorModeSwitcher"
@@ -60,11 +67,13 @@ export default {
<div class="toolbar-text gl-font-sm">
<template v-if="markdownDocsPath">
<gl-button
+ v-gl-tooltip
icon="markdown-mark"
:href="markdownDocsPath"
target="_blank"
category="tertiary"
size="small"
+ title="Markdown is supported"
/>
</template>
</div>