Paulo Reis 9 лет назад
Родитель
Сommit
1148b00c9a

+ 2 - 3
services/web/app/views/project/editor/header.jade

@@ -89,11 +89,10 @@ header.toolbar.toolbar-header.toolbar-with-labels(
 			href,
 			ng-if="trackChangesFeatureFlag",
 			ng-class="{ active: ui.reviewPanelOpen }"
-			tooltip="#{translate('review')}",
-			tooltip-placement="bottom",
 			ng-click="toggleReviewPanel()"
 		)
-			| Review
+			i.review-icon
+			p.toolbar-label Review
 		a.btn.btn-full-height(
 			href,
 			ng-if="permissions.admin",

BIN
services/web/public/img/review-icon-sprite.png


+ 21 - 0
services/web/public/stylesheets/app/editor/review-panel.less

@@ -697,3 +697,24 @@
 		margin-left: -1px;
 	}
 }
+
+.review-icon {
+	position: absolute;
+	background: url('/img/review-icon-sprite.png') top/30px no-repeat;
+	width: 30px;
+	height: 30px;
+
+	.toolbar .btn-full-height:hover & {
+		background-position-y: -30px;
+	}
+
+	.toolbar .btn-full-height.active &,
+	.toolbar .btn-full-height:active & {
+		background-position-y: -60px;
+	}
+
+	& + .toolbar-label {
+		margin-left: 34px;
+	}
+
+}