From c2f4f245860e27302132a66d64e25d2637f30320 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 23 May 2024 04:16:09 +0200 Subject: [PATCH] fix(web): preallocate space for dots --- web/index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web/index.html b/web/index.html index 14c1db09..528ecdc2 100644 --- a/web/index.html +++ b/web/index.html @@ -316,19 +316,20 @@ &:after { animation: dots 1.5s linear infinite; display: inline-block; - content: ""; + content: "\00a0\00a0\00a0"; } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } + /* \00a0 is unicode for "space", because otherwise it gets removed */ @keyframes dots { - 0% { content: ""; } - 25% { content: "."; } - 50% { content: ".."; } + 0% { content: "\00a0\00a0\00a0"; } + 25% { content: ".\00a0\00a0"; } + 50% { content: "..\00a0"; } 75% { content: "..."; } - 100% { content: ""; } + 100% { content: "\00a0\00a0\00a0"; } }