Skip to content

Commit

Permalink
Convert search card description to fully be plain text (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthbo authored Feb 18, 2025
1 parent 80f1dd2 commit 60ec002
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
<span>{{ elementName }}</span>
}
</p>
<p class="description">{{ component.item.description | truncate: 150 }}</p>
<p
class="description"
*javadocTransform="let text of component.item.description; elements: elements; asText: true"
>
{{ text | truncate: 150 }}
</p>
<ff-button
[routerLink]="
component.item.labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ import { RouterLink } from '@angular/router';
import { AppService } from '../../../app.service';
import { TruncatePipe } from '../../../components/truncate.pipe';
import { environment } from '../../../../environments/environment';
import { JavadocTransformDirective } from '../../../components/javadoc-transform.directive';

@Component({
selector: 'app-home-component-list',
imports: [ButtonComponent, RouterLink, TruncatePipe],
imports: [ButtonComponent, RouterLink, TruncatePipe, JavadocTransformDirective],
templateUrl: './home-component-list.component.html',
styleUrl: './home-component-list.component.scss',
})
export class HomeComponentListComponent {
@Input() components: FuseResult<Element>[] = [];
@Input() elements: Record<string, Element> = {};

protected relatedComponents: FuseResult<Element>[] = [];
protected showRelated: boolean = environment.relatedSearchResults;
Expand Down

0 comments on commit 60ec002

Please sign in to comment.