From b2266f5a10244ed68fe79ee73cffa9ae4850f39e Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sat, 28 Sep 2024 03:11:49 +0200 Subject: [PATCH] More whitespace around chat bubble --- src/components/gui/Chat.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/gui/Chat.vue b/src/components/gui/Chat.vue index dd95407..84c9ff1 100644 --- a/src/components/gui/Chat.vue +++ b/src/components/gui/Chat.vue @@ -90,7 +90,7 @@ gameStore.connection?.on('chat:message', (data: ChatMessage) => { return metrics.width } - chatBubble.width = calculateTextWidth(data.message.substring(0, 90), 'Arial', 13) + 15 + chatBubble.width = calculateTextWidth(data.message.substring(0, 90), 'Arial', 13) + 30 // setText but with max. char limit of 90 chatText.setText(data.message.substring(0, 90))