adjust unit converter card

This commit is contained in:
bignutty 2024-07-28 17:26:07 +02:00
parent d5d5f01cdc
commit d6f51a5c2b
2 changed files with 10 additions and 2 deletions

View file

@ -121,7 +121,11 @@ function createSearchResultPage(context, result, doodle){
break;
case SEARCH_CARD_TYPES.UNIT_CONVERTER:
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)
})
break;