Skip to content
Snippets Groups Projects
Commit 71a610e1 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

shorten the title

parent 9701fb83
Branches
Tags
No related merge requests found
......@@ -85,7 +85,14 @@ export default class DualLinkToComponent extends Component {
}
get title() {
return this.args.title || this.args.node.get('title');
let ret;
ret = this.args.title || this.args.node.get('title');
if (ret.length > 16) {
return `${ret.substring(0, 16)}...`;
}
return ret;
}
get query() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment