mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
adjust unit converter card
This commit is contained in:
parent
d5d5f01cdc
commit
d6f51a5c2b
2 changed files with 10 additions and 2 deletions
|
@ -121,7 +121,11 @@ function createSearchResultPage(context, result, doodle){
|
||||||
break;
|
break;
|
||||||
case SEARCH_CARD_TYPES.UNIT_CONVERTER:
|
case SEARCH_CARD_TYPES.UNIT_CONVERTER:
|
||||||
res = createEmbed("default", context, {
|
res = createEmbed("default", context, {
|
||||||
description: `### Unit Converter\n \n${smallPill(result.units[0])} ${icon("equals")} ${pill(result.units[1])}`,
|
author: {
|
||||||
|
name: result.query,
|
||||||
|
iconUrl: STATIC_ICONS.search_calculator
|
||||||
|
},
|
||||||
|
description: `### Unit Converter\n${smallPill(result.units[0])} ${icon("arrow_right")} ${pill(result.units[1])}`,
|
||||||
footer: renderFooter(context, doodle)
|
footer: renderFooter(context, doodle)
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -122,7 +122,11 @@ function createSearchResultPage(context, result, doodle){
|
||||||
break;
|
break;
|
||||||
case SEARCH_CARD_TYPES.UNIT_CONVERTER:
|
case SEARCH_CARD_TYPES.UNIT_CONVERTER:
|
||||||
res = createEmbed("default", context, {
|
res = createEmbed("default", context, {
|
||||||
description: `### Unit Converter\n \n${smallPill(result.units[0])} ${icon("equals")} ${pill(result.units[1])}`,
|
author: {
|
||||||
|
name: result.query,
|
||||||
|
iconUrl: STATIC_ICONS.search_calculator
|
||||||
|
},
|
||||||
|
description: `### Unit Converter\n${smallPill(result.units[0])} ${icon("arrow_right")} ${pill(result.units[1])}`,
|
||||||
footer: renderFooter(context, doodle)
|
footer: renderFooter(context, doodle)
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue