From 7ce20a75312aae6b85b825caaeea120358cdd7b5 Mon Sep 17 00:00:00 2001 From: Diogo Paulos Date: Sat, 24 Aug 2024 13:26:56 +0100 Subject: [PATCH] fix: prevent timestamp wrapping (#462) Discord doesnt have wrapping on timestamps, so this ensures no wrapping. Co-authored-by: Jeroen Claassens --- packages/core/src/components/discord-time/DiscordTime.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/components/discord-time/DiscordTime.ts b/packages/core/src/components/discord-time/DiscordTime.ts index 35b6a8cf9..be7903be7 100644 --- a/packages/core/src/components/discord-time/DiscordTime.ts +++ b/packages/core/src/components/discord-time/DiscordTime.ts @@ -8,6 +8,7 @@ export class DiscordTime extends LitElement { */ public static override readonly styles = css` :host { + white-space: nowrap; background-color: #ffffff0f; border-radius: 3px; padding: 0 2px;