Commit ca6d76cf authored by Filipa Lacerda's avatar Filipa Lacerda

Breaks text in DAST when it overflows

Removes extra margin in DAST modal

Add back todo comment

Render code block in a new line
Fix code block overflowing the modal
Change expand button to use v-if instead

Break the show complete report link when it overflows
Fix eslint

make break-link accessible
parent 1b97ff5b
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
@click="onClick"> @click="onClick">
... ...
</button> </button>
<span v-show="!isCollapsed"> <span v-if="!isCollapsed">
<slot name="expanded"></slot> <slot name="expanded"></slot>
</span> </span>
</span> </span>
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
type="button" type="button"
@click="openDastModal(issue, index)" @click="openDastModal(issue, index)"
data-toggle="modal" data-toggle="modal"
class="js-modal-dast btn-link btn-blank btn-open-modal" class="js-modal-dast btn-link btn-blank btn-open-modal break-link"
:data-target="modalTargetId" :data-target="modalTargetId"
> >
{{ issue.name }} {{ issue.name }}
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
class="modal-security-report-dast" class="modal-security-report-dast"
> >
<slot class="modal-lg"> <slot>
{{ modalDesc }} {{ modalDesc }}
<h5 class="prepend-top-20"> <h5 class="prepend-top-20">
...@@ -241,19 +241,17 @@ ...@@ -241,19 +241,17 @@
:href="instance.uri" :href="instance.uri"
target="_blank" target="_blank"
rel="noopener noreferrer nofollow" rel="noopener noreferrer nofollow"
class="prepend-left-5" class="break-link"
> >
{{ instance.uri }} {{ instance.uri }}
</a> </a>
</div> </div>
<div> <expand-button v-if="instance.evidence">
<expand-button v-if="instance.evidence"> <pre
<pre slot="expanded"
slot="expanded" class="block report-block-dast-code prepend-top-10 report-block-issue-code"
class="block report-block-dast-code prepend-top-10" >{{ instance.evidence }}</pre>
>{{ instance.evidence }}</pre> </expand-button>
</expand-button>
</div>
</div> </div>
</li> </li>
</ul> </ul>
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
<button <button
v-if="allIssues.length && !isFullReportVisible" v-if="allIssues.length && !isFullReportVisible"
type="button" type="button"
class="btn-link btn-blank prepend-left-10 js-expand-full-list" class="btn-link btn-blank prepend-left-10 js-expand-full-list break-link"
@click="openFullReport" @click="openFullReport"
> >
{{ s__("ciReport|Show complete code vulnerabilities report") }} {{ s__("ciReport|Show complete code vulnerabilities report") }}
......
...@@ -55,18 +55,20 @@ ...@@ -55,18 +55,20 @@
align-self: center; align-self: center;
margin: 5px 0px; margin: 5px 0px;
.btn-open-modal {
text-align: left;
}
}
.report-block {
.break-link { .break-link {
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
} }
.btn-open-modal {
text-align: left;
}
} }
.report-block-issue-code { .report-block-issue-code {
width: 100%; width: $modal-lg - 70px;
} }
.modal-security-report-dast { .modal-security-report-dast {
...@@ -74,7 +76,7 @@ ...@@ -74,7 +76,7 @@
width: $modal-lg; width: $modal-lg;
} }
// TODO remove this when gl_modal support not rendering the footer // TODO remove this when gl_modal support not rendering the footer
.moda-footer { .modal-footer {
display: none; display: none;
} }
} }
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