Make comment removal element less obtrusive
This change moves the admin-only commment up above the comment next to the date and styles it more subtly, saving vertical space. Bug: Issue 7274 Change-Id: Id3095a5439e33055eec3191f6e31d17bb8640615
This commit is contained in:
@@ -198,8 +198,8 @@ limitations under the License.
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
#deleteBtn {
|
#deleteBtn {
|
||||||
|
color: #666;
|
||||||
display: none;
|
display: none;
|
||||||
margin-top: .5em;
|
|
||||||
}
|
}
|
||||||
#deleteBtn.showDeleteButtons {
|
#deleteBtn.showDeleteButtons {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -222,6 +222,13 @@ limitations under the License.
|
|||||||
<div class="headerMiddle">
|
<div class="headerMiddle">
|
||||||
<span class="collapsedContent">[[comment.message]]</span>
|
<span class="collapsedContent">[[comment.message]]</span>
|
||||||
</div>
|
</div>
|
||||||
|
<gr-button
|
||||||
|
id="deleteBtn"
|
||||||
|
link
|
||||||
|
class$="action delete [[_computeDeleteButtonClass(_isAdmin, draft)]]"
|
||||||
|
on-tap="_handleCommentDelete">
|
||||||
|
(Delete)
|
||||||
|
</gr-button>
|
||||||
<a class="date" href$="[[_computeLinkToComment(comment)]]" on-tap="_handleLinkTap">
|
<a class="date" href$="[[_computeLinkToComment(comment)]]" on-tap="_handleLinkTap">
|
||||||
<gr-date-formatter
|
<gr-date-formatter
|
||||||
has-tooltip
|
has-tooltip
|
||||||
@@ -283,12 +290,6 @@ limitations under the License.
|
|||||||
on-tap="_handleCancel" hidden>Cancel</gr-button>
|
on-tap="_handleCancel" hidden>Cancel</gr-button>
|
||||||
<gr-button class="action discard hideOnPublished"
|
<gr-button class="action discard hideOnPublished"
|
||||||
on-tap="_handleDiscard">Discard</gr-button>
|
on-tap="_handleDiscard">Discard</gr-button>
|
||||||
<gr-button
|
|
||||||
id="deleteBtn"
|
|
||||||
class$="action delete [[_computeDeleteButtonClass(_isAdmin, draft)]]"
|
|
||||||
on-tap="_handleCommentDelete">
|
|
||||||
Delete
|
|
||||||
</gr-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions robotActions" hidden$="[[!_showRobotActions]]">
|
<div class="actions robotActions" hidden$="[[!_showRobotActions]]">
|
||||||
|
|||||||
Reference in New Issue
Block a user