Commit 24e3992e authored by Coung Ngo's avatar Coung Ngo

Delete related issues CSS

Delete unused CSS and convert CSS to utility classes where possible
parent b5247dec
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
</script> </script>
<template> <template>
<div id="related-issues" class="related-issues-block"> <div id="related-issues" class="related-issues-block gl-mt-5">
<div class="card card-slim gl-overflow-hidden"> <div class="card card-slim gl-overflow-hidden">
<div <div
:class="{ 'panel-empty-heading border-bottom-0': !hasBody }" :class="{ 'panel-empty-heading border-bottom-0': !hasBody }"
......
...@@ -97,11 +97,7 @@ export default { ...@@ -97,11 +97,7 @@ export default {
class="related-issues-token-body bordered-box bg-white" class="related-issues-token-body bordered-box bg-white"
:class="{ 'sortable-container': canReorder }" :class="{ 'sortable-container': canReorder }"
> >
<div <div v-if="isFetching" class="gl-mb-2" data-qa-selector="related_issues_loading_placeholder">
v-if="isFetching"
class="related-issues-loading-icon"
data-qa-selector="related_issues_loading_placeholder"
>
<gl-loading-icon <gl-loading-icon
ref="loadingIcon" ref="loadingIcon"
size="sm" size="sm"
......
...@@ -3,4 +3,3 @@ ...@@ -3,4 +3,3 @@
can_add_related_issues: "#{can?(current_user, :admin_issue_link, @issue)}", can_add_related_issues: "#{can?(current_user, :admin_issue_link, @issue)}",
help_path: help_page_path('user/project/issues/related_issues'), help_path: help_page_path('user/project/issues/related_issues'),
show_categorized_issues: "false" } } show_categorized_issues: "false" } }
- render('projects/issues/related_issues_block')
.related-issues-block
.card.card-slim
.card-header.panel-empty-heading.border-bottom-0
%h3.card-title.mt-0.mb-0.h5
= _('Linked issues')
$token-spacing-bottom: 0.5em;
.related-issues-block {
margin-top: 3 * $gl-vert-padding;
}
.related-issues-header-help-icon {
margin-left: 0.25em;
color: $gl-text-color-secondary;
}
.related-issues-token-body { .related-issues-token-body {
padding: 0;
li .issuable-info-container {
padding-left: $gl-padding;
@include media-breakpoint-down(md) {
padding-left: $gl-padding-8;
}
}
a.issuable-main-info:hover { a.issuable-main-info:hover {
text-decoration: none; text-decoration: none;
...@@ -29,25 +8,6 @@ $token-spacing-bottom: 0.5em; ...@@ -29,25 +8,6 @@ $token-spacing-bottom: 0.5em;
} }
} }
.related-issues-loading-icon {
margin-bottom: $token-spacing-bottom;
line-height: 1.75;
}
.related-issues-token-list {
display: flex;
flex-wrap: wrap;
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.related-issues-token-list-item {
max-width: 100%;
margin-bottom: $token-spacing-bottom;
margin-right: 5px;
}
.issue-token-end { .issue-token-end {
order: 1; order: 1;
} }
......
...@@ -3,4 +3,3 @@ ...@@ -3,4 +3,3 @@
can_add_related_issues: "#{can?(current_user, :admin_issue_link, @issue)}", can_add_related_issues: "#{can?(current_user, :admin_issue_link, @issue)}",
help_path: help_page_path('user/project/issues/related_issues'), help_path: help_page_path('user/project/issues/related_issues'),
show_categorized_issues: "#{!!@project.feature_available?(:blocked_issues)}" } } show_categorized_issues: "#{!!@project.feature_available?(:blocked_issues)}" } }
- render('projects/issues/related_issues_block')
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