From 15aa4135848576d4d0d1a971b34c7a9ad725687d Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 21 Nov 2025 22:39:34 +0000 Subject: [PATCH] fix: Prevent layout shift when error message appears Co-authored-by: aider (gemini/gemini-2.5-pro) --- webclient/src/Article.js | 12 ++++-------- webclient/src/Feed.js | 10 ++++------ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/webclient/src/Article.js b/webclient/src/Article.js index 03f8afd..a2cff1a 100644 --- a/webclient/src/Article.js +++ b/webclient/src/Article.js @@ -57,14 +57,10 @@ function Article({ cache }) { return (
- {error ? -
- Connection error? Click to expand. -

{error}

-
- : -
- } +
+ Connection error? Click to expand. +

{error}

+
{story ?
diff --git a/webclient/src/Feed.js b/webclient/src/Feed.js index 3482355..4c035e1 100644 --- a/webclient/src/Feed.js +++ b/webclient/src/Feed.js @@ -96,12 +96,10 @@ function Feed({ updateCache }) { QotNews - {error && -
- Connection error? Click to expand. -

{error}

-
- } +
+ Connection error? Click to expand. +

{error}

+
{stories ?
{stories.map(x =>