Просмотр исходного кода

Make hint card area non-clickable.

Paulo Reis 10 лет назад
Родитель
Сommit
5f7ffb5a8c

+ 4 - 1
services/web/app/views/project/editor/pdf.jade

@@ -106,7 +106,10 @@ div.full-size.pdf(ng-controller="PdfController")
 					span(ng-show="entry.file") {{ entry.file }}
 					span(ng-show="entry.line") , line {{ entry.line }}
 				p.entry-message(ng-show="entry.message") {{ entry.message }}
-				.card.card-hint(ng-if="entry.humanReadableHint")
+				.card.card-hint(
+					ng-if="entry.humanReadableHint"
+					stop-propagation="click"
+				)
 					figure.card-hint-icon-container
 						i.fa.fa-lightbulb-o(aria-hidden="true")
 					p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint")

+ 1 - 0
services/web/public/stylesheets/app/editor/pdf.less

@@ -181,6 +181,7 @@
 
 .card-hint:extend(.card-thin) {
 	margin-top: 10px;
+	cursor: default;
 
 	&-icon-container {
 		background: currentColor;