mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fixes layout issue with some descriptions
This commit is contained in:
parent
412fef8fbe
commit
e8312f0b32
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ function createSearchResultPage(context, result, doodle){
|
||||||
if(result.card.color && result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
|
if(result.card.color && result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
|
||||||
|
|
||||||
if(result.card.description !== ""){
|
if(result.card.description !== ""){
|
||||||
res.description += "\n\n" + result.card.description
|
res.description += "\n\n" + result.card.description.replace(/\n/g,'')
|
||||||
if(result.card.source) res.description += citation(1, result.card.source, "Source") + "\n\n" + link(result.card.source, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
if(result.card.source) res.description += citation(1, result.card.source, "Source") + "\n\n" + link(result.card.source, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
||||||
else if(result.card.link !== "") res.description += "\n\n" + link(result.card.link, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
else if(result.card.link !== "") res.description += "\n\n" + link(result.card.link, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,7 @@ function createSearchResultPage(context, result, doodle){
|
||||||
if(result.card.color && result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
|
if(result.card.color && result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
|
||||||
|
|
||||||
if(result.card.description !== ""){
|
if(result.card.description !== ""){
|
||||||
res.description += "\n\n" + result.card.description
|
res.description += "\n\n" + result.card.description.replace(/\n/g,'')
|
||||||
if(result.card.source) res.description += citation(1, result.card.source, "Source") + "\n\n" + link(result.card.source, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
if(result.card.source) res.description += citation(1, result.card.source, "Source") + "\n\n" + link(result.card.source, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
||||||
else if(result.card.link !== "") res.description += "\n\n" + link(result.card.link, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
else if(result.card.link !== "") res.description += "\n\n" + link(result.card.link, `Learn More ${icon("link_open_external")}`, "Learn more about this topic");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue