提交 ce073b00 编写于 作者: P Peng Lyu

Avoid shifting when adding/deleting reactions

上级 8606dcc8
......@@ -770,6 +770,6 @@ registerThemingParticipant((theme, collector) => {
const statusBarItemActiveBackground = theme.getColor(STATUS_BAR_ITEM_ACTIVE_BACKGROUND);
if (statusBarItemActiveBackground) {
collector.addRule(`.monaco-editor .review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label:active { background-color: ${statusBarItemActiveBackground}; border: none;}`);
collector.addRule(`.monaco-editor .review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label:active { background-color: ${statusBarItemActiveBackground}; border: 1px solid transparent;}`);
}
});
......@@ -47,6 +47,10 @@
margin-left: auto;
}
.monaco-editor .review-widget .body .review-comment .comment-actions .monaco-toolbar {
height: 21px;
}
.monaco-editor .review-widget .body .review-comment .comment-actions .action-item {
width: 22px;
}
......@@ -179,6 +183,7 @@
background-repeat: no-repeat;
background-position: center;
margin-top: 3px;
border: none;
}
.monaco-editor .review-widget .body .review-comment .review-comment-contents .comment-reactions:hover .action-item a.action-label.toolbar-toggle-pickReactions {
......@@ -210,6 +215,10 @@
background-image: url(./reaction-hc.svg);
}
.monaco-editor .review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label{
border: 1px solid transparent;
}
.monaco-editor .review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.active {
border: 1px solid grey;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册