Commit a510d9bd authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Correct disabled note form style

parent 1ae29851
<script> <script>
export default { export default {
name: 'discussionLockedWidget', computed: {
icon() {
return gl.utils.spriteIcon('lock');
},
},
}; };
</script> </script>
...@@ -8,7 +12,8 @@ ...@@ -8,7 +12,8 @@
<template> <template>
<div class="disabled-comment text-center"> <div class="disabled-comment text-center">
<span class="issuable-note-warning"> <span class="issuable-note-warning">
This issue is locked. Only <b>project members</b> can comment. <span class="icon" v-html="icon"></span>
<span>This issue is locked. Only <b>project members</b> can comment.</span>
</span> </span>
</div> </div>
</template> </template>
...@@ -112,6 +112,22 @@ ...@@ -112,6 +112,22 @@
align-items: center; align-items: center;
} }
.disabled-comment .issuable-note-warning {
border: none;
border-radius: $label-border-radius;
padding-top: $gl-vert-padding;
padding-bottom: $gl-vert-padding;
.icon svg {
position: relative;
top: 2px;
margin-right: $btn-xs-side-margin;
width: $gl-font-size;
height: $gl-font-size;
fill: $orange-600;
}
}
.sidebar-item-value { .sidebar-item-value {
.fa { .fa {
background-color: inherit; background-color: inherit;
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
- elsif discussion_locked - elsif discussion_locked
.disabled-comment.text-center.prepend-top-default .disabled-comment.text-center.prepend-top-default
%span.issuable-note-warning %span.issuable-note-warning
%span.icon= sprite_icon('lock', size: 14)
%span
This This
= issuable.class.to_s.titleize.downcase = issuable.class.to_s.titleize.downcase
is locked. Only is locked. Only
......
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