Commit eee61387 authored by Filipa Lacerda's avatar Filipa Lacerda

Fixes broken modal in DAST report

parent 31be34d7
......@@ -805,10 +805,19 @@
margin: 0;
line-height: $code_line_height;
.btn-open-modal {
padding: 0 5px 4px;
}
.mr-widget-code-quality-list-item {
display: flex;
}
.mr-widget-code-quality-list-item-modal {
display: flex;
flex-wrap: wrap;
}
.failed .mr-widget-code-quality-icon {
color: $red-500;
}
......
---
title: Fix broken CSS in modal for DAST report
merge_request:
author:
type: fixed
<script>
import { s__ } from '~/locale';
import { spriteIcon } from '~/lib/utils/common_utils';
import expandButton from '~/vue_shared/components/expand_button.vue';
import Icon from '~/vue_shared/components/icon.vue';
import ExpandButton from '~/vue_shared/components/expand_button.vue';
export default {
name: 'ModalDast',
components: {
expandButton,
ExpandButton,
Icon,
},
props: {
title: {
......@@ -27,13 +28,10 @@
instances: {
type: Array,
required: false,
default: () => [],
default: () => ([]),
},
},
computed: {
cutIcon() {
return spriteIcon('cut');
},
instancesLabel() {
return s__('ciReport|Instances');
},
......@@ -54,7 +52,7 @@
role="dialog"
>
<div
class="modal-dialog"
class="modal-dialog modal-lg"
role="document"
>
<div class="modal-content">
......@@ -83,18 +81,21 @@
<li
v-for="(instance, i) in instances"
:key="i"
class="failed"
class="mr-widget-code-quality-list-item-modal failed"
>
<span
<icon
class="mr-widget-code-quality-icon"
v-html="cutIcon"
>
</span>
name="status_failed_borderless"
:size="32"
/>
{{ instance.method }}
<a
:href="instance.uri"
target="_blank"
rel="noopener noreferrer nofollow"
class="prepend-left-5"
>
{{ instance.uri }}
</a>
......
......@@ -143,6 +143,7 @@
:href="issue.nameLink"
target="_blank"
rel="noopener noreferrer nofollow"
class="prepend-left-5"
>
{{ issue.name }}
</a>
......@@ -155,7 +156,7 @@
type="button"
@click="openDastModal(issue, index)"
data-toggle="modal"
class="btn-link btn-blank"
class="btn-link btn-blank btn-open-modal"
:data-target="modalTargetId"
>
{{ issue.name }}
......
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