Commit bcbda09b authored by Dheeraj Joshi's avatar Dheeraj Joshi Committed by Kushal Pandya

Fix styling for Request CVE button in sidebar

parent 1ba710a9
...@@ -179,6 +179,7 @@ ...@@ -179,6 +179,7 @@
} }
.block, .block,
.sidebar-contained-width,
.issuable-sidebar-header { .issuable-sidebar-header {
@include clearfix; @include clearfix;
padding: $gl-padding 0; padding: $gl-padding 0;
...@@ -317,6 +318,7 @@ ...@@ -317,6 +318,7 @@
padding: 0; padding: 0;
.block, .block,
.sidebar-contained-width,
.issuable-sidebar-header { .issuable-sidebar-header {
width: $gutter-collapsed-width - 2px; width: $gutter-collapsed-width - 2px;
padding: 0; padding: 0;
......
<script> <script>
import { GlLink, GlIcon, GlTooltipDirective } from '@gitlab/ui'; import { GlLink, GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { helpPagePath } from '~/helpers/help_page_helper';
import { createCveIdRequestIssueBody } from '~/helpers/cve_id_request_helper'; import { createCveIdRequestIssueBody } from '~/helpers/cve_id_request_helper';
import { joinPaths } from '~/lib/utils/url_utility';
import { CVE_ID_REQUEST_SIDEBAR_I18N } from '../../constants'; import { CVE_ID_REQUEST_SIDEBAR_I18N } from '../../constants';
export default { export default {
...@@ -39,10 +39,7 @@ export default { ...@@ -39,10 +39,7 @@ export default {
computed: { computed: {
...mapState({ confidential: (state) => state.noteableData.confidential }), ...mapState({ confidential: (state) => state.noteableData.confidential }),
helpHref() { helpHref() {
return joinPaths( return helpPagePath('user/application_security/cve_id_request');
gon.relative_url_root || '',
'/help/user/application_security/cve_id_request.md',
);
}, },
showHelpState() { showHelpState() {
return Boolean(this.showHelp); return Boolean(this.showHelp);
...@@ -76,7 +73,7 @@ export default { ...@@ -76,7 +73,7 @@ export default {
</script> </script>
<template> <template>
<div v-if="confidential" class="cve-id-request gl-display-block gl-pb-0 gl-border-b-0"> <div v-if="confidential" class="sidebar-contained-width cve-id-request gl-pb-0 gl-border-b-0">
<div <div
v-gl-tooltip.viewport.left v-gl-tooltip.viewport.left
:title="tooltipTitle" :title="tooltipTitle"
......
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