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-05-09 09:10:32 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-09 09:10:32 +0300
commite168d3919a2c82eafa1d1f81e4b96aedae28717a (patch)
tree461380b2e25cf1850362a367396002846fa00273 /app/assets/javascripts/admin
parentf119af78abbd9cffda2103d778c3b2f555087e2f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/admin')
-rw-r--r--app/assets/javascripts/admin/abuse_report/components/reported_content.vue14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/assets/javascripts/admin/abuse_report/components/reported_content.vue b/app/assets/javascripts/admin/abuse_report/components/reported_content.vue
index 3cd8d493cf5..b5ffba26360 100644
--- a/app/assets/javascripts/admin/abuse_report/components/reported_content.vue
+++ b/app/assets/javascripts/admin/abuse_report/components/reported_content.vue
@@ -4,6 +4,7 @@ import { __ } from '~/locale';
import SafeHtml from '~/vue_shared/directives/safe_html';
import { renderGFM } from '~/behaviors/markdown/render_gfm';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
+import TruncatedText from '~/vue_shared/components/truncated_text/truncated_text.vue';
import { REPORTED_CONTENT_I18N } from '../constants';
export default {
@@ -15,6 +16,7 @@ export default {
GlLink,
GlAvatar,
TimeAgoTooltip,
+ TruncatedText,
},
modalId: 'abuse-report-screenshot-modal',
directives: {
@@ -107,11 +109,13 @@ export default {
footer-class="gl-bg-white js-test-card-footer"
>
<template v-if="report.content" #header>
- <div
- ref="gfmContent"
- v-safe-html:[$options.safeHtmlConfig]="report.content"
- class="md"
- ></div>
+ <truncated-text>
+ <div
+ ref="gfmContent"
+ v-safe-html:[$options.safeHtmlConfig]="report.content"
+ class="md"
+ ></div>
+ </truncated-text>
</template>
{{ $options.i18n.reportedBy }}
<template #footer>