Commit 01eafdbc authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch '298681-scripts-content-overflow' into 'master'

Make scripts in lint text in pre blocks wrap

See merge request gitlab-org/gitlab!51687
parents ca2fcb0f bdb907c6
......@@ -44,13 +44,21 @@ export default {
<template>
<div data-testid="ci-lint-value">
<pre v-if="scripts.beforeScript.show" data-testid="ci-lint-before-script">{{
scripts.beforeScript.content
}}</pre>
<pre v-if="scripts.script.show" data-testid="ci-lint-script">{{ scripts.script.content }}</pre>
<pre v-if="scripts.afterScript.show" data-testid="ci-lint-after-script">{{
scripts.afterScript.content
<pre
v-if="scripts.beforeScript.show"
class="gl-white-space-pre-wrap"
data-testid="ci-lint-before-script"
>{{ scripts.beforeScript.content }}</pre
>
<pre v-if="scripts.script.show" class="gl-white-space-pre-wrap" data-testid="ci-lint-script">{{
scripts.script.content
}}</pre>
<pre
v-if="scripts.afterScript.show"
class="gl-white-space-pre-wrap"
data-testid="ci-lint-after-script"
>{{ scripts.afterScript.content }}</pre
>
<ul class="gl-list-style-none gl-pl-0 gl-mb-0">
<li v-if="tagList">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment