Skip to content

Commit

Permalink
feat: modify picture display to compact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed Mar 12, 2023
1 parent b743718 commit a74efe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/handlers/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ func withImageDiv(imageKey string) larkcard.MessageCardElement {
Alt(larkcard.NewMessageCardPlainText().Content("").
Build()).
Preview(true).
Mode(larkcard.MessageCardImageModelFitHorizontal).
Mode(larkcard.MessageCardImageModelCropCenter).
CompactWidth(true).
Build()
return imageElement
}
Expand Down

0 comments on commit a74efe1

Please sign in to comment.