Remove spaces in hashtags & line clamp metadata
This commit is contained in:
parent
a48cec63fc
commit
1d2af2900b
|
@ -30,7 +30,7 @@ export function contractTextDetails(contract: Contract) {
|
|||
const { closeTime, groupLinks } = contract
|
||||
const { createdDate, resolvedDate, volumeLabel } = contractMetrics(contract)
|
||||
|
||||
const groupHashtags = groupLinks?.slice(0, 5).map((g) => `#${g.name}`)
|
||||
const groupHashtags = groupLinks?.map((g) => `#${g.name.replace(/ /g, '')}`)
|
||||
|
||||
return (
|
||||
`${resolvedDate ? `${createdDate} - ${resolvedDate}` : createdDate}` +
|
||||
|
|
|
@ -122,7 +122,7 @@ export function getHtml(parsedReq: ParsedRequest) {
|
|||
|
||||
<!-- Metadata -->
|
||||
<div class="absolute bottom-16">
|
||||
<div class="text-gray-500 text-3xl max-w-[80vw]">
|
||||
<div class="text-gray-500 text-3xl max-w-[80vw] line-clamp-2">
|
||||
${metadata}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user