diff --git a/app/assets/javascripts/components/annotations/annotation_marker.ts b/app/assets/javascripts/components/annotations/annotation_marker.ts index c35321797d..55de405ced 100644 --- a/app/assets/javascripts/components/annotations/annotation_marker.ts +++ b/app/assets/javascripts/components/annotations/annotation_marker.ts @@ -31,11 +31,10 @@ export class AnnotationMarker extends LitElement { static getStyle(annotation: AnnotationData): string { if (["error", "warning", "info"].includes(annotation.type)) { - return `text-decoration: wavy underline ${AnnotationMarker.colors[annotation.type]} ${annotationState.isHovered(annotation) ? 2 : 1}px;`; + return `text-decoration: wavy underline ${AnnotationMarker.colors[annotation.type]} 1px;`; } else { - const colorKey = annotationState.isHovered(annotation) ? `${annotation.type}-intense` : annotation.type; return ` - background: ${AnnotationMarker.colors[colorKey]}; + background: ${AnnotationMarker.colors[annotation.type]}; padding-top: 2px; padding-bottom: 2px; margin-top: -2px; @@ -96,20 +95,12 @@ export class AnnotationMarker extends LitElement { } get sortedAnnotations(): AnnotationData[] { - return this.annotations.sort( (a, b) => { - if (annotationState.isHovered(a)) { - return -1; - } else if (annotationState.isHovered(b)) { - return 1; - } else { - return compareAnnotationOrders(a, b); - } - }); + return this.annotations.sort( compareAnnotationOrders ); } get machineAnnotationMarkerSVG(): TemplateResult | undefined { const firstMachineAnnotation = this.sortedAnnotations.find(a => !isUserAnnotation(a)); - const size = annotationState.isHovered(firstMachineAnnotation) ? 20 : 14; + const size = 14; return firstMachineAnnotation && html``; diff --git a/app/assets/javascripts/components/annotations/machine_annotation.ts b/app/assets/javascripts/components/annotations/machine_annotation.ts index 2020e0bad4..d4a9ffa002 100644 --- a/app/assets/javascripts/components/annotations/machine_annotation.ts +++ b/app/assets/javascripts/components/annotations/machine_annotation.ts @@ -30,9 +30,7 @@ export class MachineAnnotation extends ShadowlessLitElement { render(): TemplateResult { return html` -