Ver Fonte

fix(ui/chat): honor configured picker size for attachments list (#778)

ayn2op há 1 mês atrás
pai
commit
ac5198636c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      internal/ui/chat/messages_list.go

+ 1 - 1
internal/ui/chat/messages_list.go

@@ -1170,7 +1170,7 @@ func (ml *messagesList) showAttachmentsList(urls []string, attachments []discord
 
 	ml.chatView.
 		AddLayer(
-			ui.Centered(ml.attachmentsPicker, 0, 0),
+			ui.Centered(ml.attachmentsPicker, ml.cfg.Picker.Width, ml.cfg.Picker.Height),
 			layers.WithName(attachmentsListLayerName),
 			layers.WithResize(true),
 			layers.WithVisible(true),