Commit d33a5073 authored by Enrique Alcantara's avatar Enrique Alcantara Committed by Enrique Alcántara

Resolve layout issues in notes form

- Fix alignment issue in toggle thread button
- Fix broken markdown toolbar layout in snippets
comments

Changelog: fixed
parent 6b7ded28
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
</script> </script>
<template> <template>
<gl-button :loading="isResolving" class="ml-sm-2" @click="$emit('onClick')"> <gl-button :loading="isResolving" class="gl-xs-w-full ml-sm-2" @click="$emit('onClick')">
{{ buttonTitle }} {{ buttonTitle }}
</gl-button> </gl-button>
</template> </template>
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
:href="url" :href="url"
:title="$options.i18n.buttonLabel" :title="$options.i18n.buttonLabel"
:aria-label="$options.i18n.buttonLabel" :aria-label="$options.i18n.buttonLabel"
class="new-issue-for-discussion discussion-create-issue-btn" class="new-issue-for-discussion discussion-create-issue-btn gl-xs-w-full"
icon="issue-new" icon="issue-new"
/> />
</div> </div>
......
...@@ -295,12 +295,6 @@ table { ...@@ -295,12 +295,6 @@ table {
} }
} }
} }
@include media-breakpoint-down(xs) {
.btn {
width: 100%;
}
}
} }
.discussion-reply-holder { .discussion-reply-holder {
......
...@@ -649,7 +649,7 @@ $system-note-svg-size: 16px; ...@@ -649,7 +649,7 @@ $system-note-svg-size: 16px;
@include media-breakpoint-down(xs) { @include media-breakpoint-down(xs) {
width: 100%; width: 100%;
margin: $gl-padding-8 0; margin: 0 0 $gl-padding-8;
} }
.btn-group > .discussion-next-btn { .btn-group > .discussion-next-btn {
......
- noteable_name = @note.noteable.human_class_name - noteable_name = @note.noteable.human_class_name
.float-left.btn-group.gl-mr-3.droplab-dropdown.comment-type-dropdown.js-comment-type-dropdown .float-left.btn-group.gl-sm-mr-3.droplab-dropdown.comment-type-dropdown.js-comment-type-dropdown
%input.btn.gl-button.btn-confirm.js-comment-button.js-comment-submit-button{ type: 'submit', value: _('Comment'), data: { qa_selector: 'comment_button' } } %input.btn.gl-button.btn-confirm.js-comment-button.js-comment-submit-button{ type: 'submit', value: _('Comment'), data: { qa_selector: 'comment_button' } }
- if @note.can_be_discussion_note? - if @note.can_be_discussion_note?
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
= render 'shared/notes/hints', supports_quick_actions: supports_quick_actions = render 'shared/notes/hints', supports_quick_actions: supports_quick_actions
.error-alert .error-alert
.note-form-actions.clearfix .note-form-actions.clearfix.gl-display-flex.gl-flex-wrap
= render partial: 'shared/notes/comment_button' = render partial: 'shared/notes/comment_button'
%a.btn.gl-button.btn-cancel.js-close-discussion-note-form.hide{ role: "button", data: { cancel_text: _("Cancel") } } %a.btn.gl-button.btn-cancel.js-close-discussion-note-form.hide{ role: "button", data: { cancel_text: _("Cancel") } }
......
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