Fix PR comments

pull/10200/head
Benjamin Bädorf 3 years ago
parent 14b11e50f4
commit 0c67a5b821
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 3
      frontend/angular.json
  2. 3
      frontend/src/app/shared/components/project-include/project-include.component.sass
  3. 4
      frontend/src/app/shared/directives/search-highlight.directive.ts
  4. 1
      frontend/src/app/spot/styles/sass/components/checkbox.sass

@ -52,7 +52,8 @@
],
"stylePreprocessorOptions": {
"includePaths": [
"src/assets/sass/"
"src/assets/sass/",
"src/app/spot/styles/sass/variables/"
]
},
"scripts": [],

@ -22,6 +22,9 @@
flex-basis: 100%
overflow: hidden
@media screen and #{$spot-mq-drop-modal-in-context}
max-height: 40vh
&--list
overflow-y: auto
flex-shrink: 1

@ -20,13 +20,13 @@ export class OpSearchHighlightDirective implements AfterViewChecked {
const textNode = Array.from(this.elementRef.nativeElement.childNodes).find((n:Node) => n.nodeType === n.TEXT_NODE) as Node|undefined;
const content = textNode?.textContent?.toLowerCase() || '';
const content = textNode?.textContent || '';
if (!content) {
return;
}
const query = this.query.toLowerCase();
const startIndex = content.indexOf(query);
const startIndex = content.toLowerCase().indexOf(query);
if (startIndex < 0) {
return;
}

@ -16,6 +16,7 @@
clip: rect(1px,1px,1px,1px)
&--fake
position: relative
box-sizing: border-box
display: flex
justify-content: center

Loading…
Cancel
Save