Commit 71209c91 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'gt-remove-unnecessary-line-before-reply-holder' into 'master'

Remove boxes around code comments

Closes #54030 and #54058

See merge request gitlab-org/gitlab-ce!23092
parents b388111f 63e2c97b
...@@ -398,7 +398,7 @@ Please check your network connection and try again.`; ...@@ -398,7 +398,7 @@ Please check your network connection and try again.`;
<div class="discussion-with-resolve-btn"> <div class="discussion-with-resolve-btn">
<button <button
type="button" type="button"
class="js-vue-discussion-reply btn btn-text-field mr-sm-2 qa-discussion-reply" class="js-vue-discussion-reply btn btn-text-field qa-discussion-reply"
title="Add a reply" title="Add a reply"
@click="showReplyForm" @click="showReplyForm"
> >
...@@ -407,7 +407,7 @@ Please check your network connection and try again.`; ...@@ -407,7 +407,7 @@ Please check your network connection and try again.`;
<div v-if="discussion.resolvable"> <div v-if="discussion.resolvable">
<button <button
type="button" type="button"
class="btn btn-default mr-sm-2" class="btn btn-default ml-sm-2"
@click="resolveHandler();" @click="resolveHandler();"
> >
<i v-if="isResolving" aria-hidden="true" class="fa fa-spinner fa-spin"></i> <i v-if="isResolving" aria-hidden="true" class="fa fa-spinner fa-spin"></i>
......
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
table { table {
.discussion-form-container { .discussion-form-container {
padding: $gl-padding-top $gl-padding $gl-padding; padding: $gl-padding;
} }
} }
...@@ -237,11 +237,12 @@ table { ...@@ -237,11 +237,12 @@ table {
} }
.discussion-body, .discussion-body,
.diff-file { .diff-file,
.commit-diff {
.discussion-reply-holder { .discussion-reply-holder {
background-color: $white-light; background-color: $white-light;
padding: 10px 16px;
border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px;
padding: $gl-padding;
&.is-replying { &.is-replying {
padding-bottom: $gl-padding; padding-bottom: $gl-padding;
...@@ -254,7 +255,6 @@ table { ...@@ -254,7 +255,6 @@ table {
display: flex; display: flex;
} }
.discussion-actions { .discussion-actions {
display: table; display: table;
...@@ -275,8 +275,10 @@ table { ...@@ -275,8 +275,10 @@ table {
} }
} }
.btn { @include media-breakpoint-down(xs) {
width: 100%; .btn {
width: 100%;
}
} }
.btn-text-field { .btn-text-field {
......
...@@ -14,7 +14,7 @@ $note-form-margin-left: 72px; ...@@ -14,7 +14,7 @@ $note-form-margin-left: 72px;
} }
@mixin outline-comment() { @mixin outline-comment() {
margin: $gl-padding; margin: $gl-padding $gl-padding 0;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius-default; border-radius: $border-radius-default;
} }
...@@ -27,8 +27,10 @@ $note-form-margin-left: 72px; ...@@ -27,8 +27,10 @@ $note-form-margin-left: 72px;
} }
} }
.main-notes-list { .issuable-discussion {
@include vertical-line(36px); .main-notes-list {
@include vertical-line(36px);
}
} }
.notes { .notes {
...@@ -76,10 +78,10 @@ $note-form-margin-left: 72px; ...@@ -76,10 +78,10 @@ $note-form-margin-left: 72px;
.card { .card {
border: 0; border: 0;
} }
}
li.note { li.note {
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
}
} }
.replies-toggle { .replies-toggle {
...@@ -161,20 +163,6 @@ $note-form-margin-left: 72px; ...@@ -161,20 +163,6 @@ $note-form-margin-left: 72px;
position: relative; position: relative;
border-bottom: 0; border-bottom: 0;
&:target,
&.target {
border-bottom: 1px solid $white-normal;
&:not(:first-child) {
border-top: 1px solid $white-normal;
margin-top: -1px;
}
.timeline-entry-inner {
border-bottom: 0;
}
}
&.being-posted { &.being-posted {
pointer-events: none; pointer-events: none;
opacity: 0.5; opacity: 0.5;
...@@ -462,7 +450,7 @@ $note-form-margin-left: 72px; ...@@ -462,7 +450,7 @@ $note-form-margin-left: 72px;
font-family: $regular-font; font-family: $regular-font;
td { td {
border: 1px solid $white-normal; border: 1px solid $border-color;
border-left: 0; border-left: 0;
&.notes_content { &.notes_content {
...@@ -504,8 +492,6 @@ $note-form-margin-left: 72px; ...@@ -504,8 +492,6 @@ $note-form-margin-left: 72px;
} }
.note-wrapper { .note-wrapper {
@include outline-comment();
&.system-note { &.system-note {
border: 0; border: 0;
margin-left: 20px; margin-left: 20px;
...@@ -514,23 +500,14 @@ $note-form-margin-left: 72px; ...@@ -514,23 +500,14 @@ $note-form-margin-left: 72px;
.discussion-reply-holder { .discussion-reply-holder {
border-radius: 0 0 $border-radius-default $border-radius-default; border-radius: 0 0 $border-radius-default $border-radius-default;
border-top: 1px solid $border-color;
position: relative; position: relative;
} }
} }
.commit-diff { .commit-diff {
.notes {
@include vertical-line(52px);
}
.notes_content { .notes_content {
background-color: $white-light; background-color: $white-light;
} }
.discussion-reply-holder {
border-top: 1px solid $border-color;
}
} }
.discussion-header, .discussion-header,
...@@ -943,12 +920,6 @@ $note-form-margin-left: 72px; ...@@ -943,12 +920,6 @@ $note-form-margin-left: 72px;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
} }
.note-wrapper.outlined {
margin: 0;
border: 0;
border-radius: 0;
}
.discussion-form-container { .discussion-form-container {
padding: $gl-padding; padding: $gl-padding;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
- note_editable = can?(current_user, :admin_note, note) - note_editable = can?(current_user, :admin_note, note)
- note_counter = local_assigns.fetch(:note_counter, 0) - note_counter = local_assigns.fetch(:note_counter, 0)
%li.timeline-entry.note-wrapper.outlined{ id: dom_id(note), %li.timeline-entry.note-wrapper{ id: dom_id(note),
class: ["note", "note-row-#{note.id}", ('system-note' if note.system)], class: ["note", "note-row-#{note.id}", ('system-note' if note.system)],
data: { author_id: note.author.id, data: { author_id: note.author.id,
editable: note_editable, editable: note_editable,
......
---
title: Remove unnecessary line before reply holder
merge_request: 23092
author: George Tsiolis
type: changed
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