Browse Source

ux(annotations): minor polish to annotations editor

Torkel Ödegaard 10 years ago
parent
commit
ae604b6289

+ 1 - 4
public/app/features/annotations/editor_ctrl.js

@@ -12,10 +12,7 @@ function (angular, _, $) {
     var annotationDefaults = {
       name: '',
       datasource: null,
-      showLine: true,
-      iconColor: '#C0C6BE',
-      lineColor: 'rgba(255, 96, 96, 0.592157)',
-      iconSize: 13,
+      iconColor: 'rgba(255, 96, 96, 1)',
       enable: true
     };
 

+ 1 - 1
public/app/features/annotations/partials/editor.html

@@ -76,8 +76,8 @@
 					<div class="gf-form">
 						<label class="gf-form-label">
 							<span>Color</span>
-							<spectrum-picker ng-model="currentAnnotation.iconColor"></spectrum-picker>
 						</label>
+						<spectrum-picker class="gf-form-input" ng-model="currentAnnotation.iconColor"></spectrum-picker>
 					</div>
 				</div>
 			</div>

+ 1 - 1
public/sass/components/_color_picker.scss

@@ -31,7 +31,7 @@
   width: 15px;
   height: 15px;
   border: none;
-  margin-right: 5px;
+  margin: 0;
   float: left;
   z-index: 0;
 }