More whitespace around chat bubble

This commit is contained in:
Dennis Postma 2024-09-28 03:11:49 +02:00
parent 6cee0b93e6
commit b2266f5a10

View File

@ -90,7 +90,7 @@ gameStore.connection?.on('chat:message', (data: ChatMessage) => {
return metrics.width 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 // setText but with max. char limit of 90
chatText.setText(data.message.substring(0, 90)) chatText.setText(data.message.substring(0, 90))