From 118b186fe11c1e43f6bf4986a52236a0f15614d7 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 16 Dec 2024 18:13:56 +0800 Subject: [PATCH] types: make deposit slack field shorter --- pkg/types/deposit.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/types/deposit.go b/pkg/types/deposit.go index 96a5a9ce09..67365059ea 100644 --- a/pkg/types/deposit.go +++ b/pkg/types/deposit.go @@ -126,7 +126,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment { fields = append(fields, slack.AttachmentField{ Title: "Status", Value: string(d.Status) + " " + d.Status.Emoji(), - Short: false, + Short: true, }) } @@ -138,7 +138,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment { fields = append(fields, slack.AttachmentField{ Title: "Confirmation", Value: text, - Short: false, + Short: true, }) } @@ -146,7 +146,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment { fields = append(fields, slack.AttachmentField{ Title: "Exchange", Value: d.Exchange.String(), - Short: false, + Short: true, }) } @@ -154,7 +154,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment { fields = append(fields, slack.AttachmentField{ Title: "Network", Value: d.Network, - Short: false, + Short: true, }) } @@ -164,14 +164,14 @@ func (d *Deposit) SlackAttachment() slack.Attachment { fields = append(fields, slack.AttachmentField{ Title: "Hostname", Value: hostname, - Short: false, + Short: true, }) } fields = append(fields, slack.AttachmentField{ Title: "Amount", Value: d.Amount.String() + " " + d.Asset, - Short: false, + Short: true, }) return slack.Attachment{