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

Improve presentation of hotkeys and add bold+italics

James Allen 10 лет назад
Родитель
Сommit
a6793be3cf

+ 8 - 2
services/web/app/views/project/editor/hotkeys.jade

@@ -50,16 +50,22 @@ script(type="text/ng-template", id="hotkeysModalTemplate")
 				.hotkey
 					span.combination {{ctrl}} + A
 					span.description Select All
-			.col-xs-6
 				.hotkey
 					span.combination Tab
 					span.description Indent Selection
+			.col-xs-6
 				.hotkey
-					span.combination {{ctrl}} + U
+					span.combination Ctrl + U
 					span.description To Uppercase
 				.hotkey
 					span.combination Ctrl + Shift + U
 					span.description To Lowercase
+				.hotkey
+					span.combination {{ctrl}} + B
+					span.description Bold text
+				.hotkey
+					span.combination {{ctrl}} + I
+					span.description Italic Text
 	.modal-footer
 		button.btn.btn-default(
 			ng-click="cancel()"

+ 5 - 1
services/web/public/stylesheets/app/editor/hotkeys.less

@@ -6,7 +6,11 @@
 	}
 	
 	.hotkey {
-		margin-bottom: @line-height-computed / 4;
+		margin-bottom: @line-height-computed / 2;
+	}
+	
+	.description {
+		display: inline-block;
 	}
 	
 	.combination {