Commit 74fed9df authored by Justin Ho's avatar Justin Ho Committed by David O'Regan

Fix spacing between buttons

Fix spacing and alignment on xs / md breakpoints
parent d0545d47
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
</template> </template>
</markdown-field> </markdown-field>
</comment-field-layout> </comment-field-layout>
<div class="note-form-actions clearfix"> <div class="note-form-actions">
<template v-if="showBatchCommentsActions"> <template v-if="showBatchCommentsActions">
<p v-if="showResolveDiscussionToggle"> <p v-if="showResolveDiscussionToggle">
<label> <label>
...@@ -386,12 +386,12 @@ export default { ...@@ -386,12 +386,12 @@ export default {
</template> </template>
</label> </label>
</p> </p>
<div class="gl-display-sm-flex gl-flex-wrap"> <div class="gl-display-flex gl-flex-wrap gl-mb-n3">
<gl-button <gl-button
:disabled="isDisabled" :disabled="isDisabled"
category="primary" category="primary"
variant="confirm" variant="confirm"
class="gl-mr-3" class="gl-sm-mr-3 gl-mb-3"
data-qa-selector="start_review_button" data-qa-selector="start_review_button"
@click="handleAddToReview" @click="handleAddToReview"
> >
...@@ -403,13 +403,13 @@ export default { ...@@ -403,13 +403,13 @@ export default {
category="secondary" category="secondary"
variant="confirm" variant="confirm"
data-qa-selector="comment_now_button" data-qa-selector="comment_now_button"
class="gl-mr-3 js-comment-button" class="gl-sm-mr-3 gl-mb-3 js-comment-button"
@click="handleUpdate()" @click="handleUpdate()"
> >
{{ __('Add comment now') }} {{ __('Add comment now') }}
</gl-button> </gl-button>
<gl-button <gl-button
class="note-edit-cancel js-close-discussion-note-form" class="note-edit-cancel gl-mb-3 js-close-discussion-note-form"
category="secondary" category="secondary"
variant="default" variant="default"
data-testid="cancelBatchCommentsEnabled" data-testid="cancelBatchCommentsEnabled"
......
...@@ -369,10 +369,6 @@ table { ...@@ -369,10 +369,6 @@ table {
.btn { .btn {
float: none; float: none;
width: 100%; width: 100%;
&:not(:last-child) {
margin-bottom: 10px;
}
} }
} }
} }
......
...@@ -172,3 +172,13 @@ ...@@ -172,3 +172,13 @@
width: 50%; width: 50%;
} }
} }
.gl-sm-mr-3 {
@include media-breakpoint-up(sm) {
margin-right: $gl-spacing-scale-3;
}
}
.gl-mb-n3 {
margin-bottom: -$gl-spacing-scale-3;
}
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