Commit 4e18e72e authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '29189-discussion-button' into 'master'

Fix alignment of resolve discussion button

Closes #29189

See merge request !9865
parents ac14bd35 6d9afdfb
...@@ -384,7 +384,7 @@ ul.notes { ...@@ -384,7 +384,7 @@ ul.notes {
top: 0; top: 0;
.note-action-button { .note-action-button {
margin-left: 10px; margin-left: 8px;
} }
} }
...@@ -400,8 +400,7 @@ ul.notes { ...@@ -400,8 +400,7 @@ ul.notes {
} }
.note-action-button { .note-action-button {
display: inline-block; display: inline;
margin-left: 0;
line-height: 20px; line-height: 20px;
@media (min-width: $screen-sm-min) { @media (min-width: $screen-sm-min) {
...@@ -540,7 +539,6 @@ ul.notes { ...@@ -540,7 +539,6 @@ ul.notes {
} }
.line-resolve-btn { .line-resolve-btn {
display: inline-block;
position: relative; position: relative;
top: 2px; top: 2px;
padding: 0; padding: 0;
...@@ -563,8 +561,9 @@ ul.notes { ...@@ -563,8 +561,9 @@ ul.notes {
} }
svg { svg {
position: relative;
fill: $gray-darkest; fill: $gray-darkest;
height: 15px;
width: 15px;
} }
} }
......
...@@ -43,9 +43,7 @@ ...@@ -43,9 +43,7 @@
"inline-template" => true, "inline-template" => true,
"ref" => "note_#{note.id}" } "ref" => "note_#{note.id}" }
.note-action-button %button.note-action-button.line-resolve-btn{ type: "button",
= icon("spin spinner", "v-show" => "loading")
%button.line-resolve-btn{ type: "button",
class: ("is-disabled" unless can_resolve), class: ("is-disabled" unless can_resolve),
":class" => "{ 'is-active': isResolved }", ":class" => "{ 'is-active': isResolved }",
":aria-label" => "buttonText", ":aria-label" => "buttonText",
...@@ -53,6 +51,7 @@ ...@@ -53,6 +51,7 @@
":title" => "buttonText", ":title" => "buttonText",
"v-show" => "!loading", "v-show" => "!loading",
":ref" => "'button'" } ":ref" => "'button'" }
= icon("spin spinner", "v-show" => "loading")
= render "shared/icons/icon_status_success.svg" = render "shared/icons/icon_status_success.svg"
......
---
title: Fix alignment of resolve button
merge_request:
author:
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