From 62fce8bcd12cbba96810e670b9ad0f5ad33f7a0f Mon Sep 17 00:00:00 2001 From: a11 Date: Sat, 16 May 2026 13:33:26 +0800 Subject: [PATCH] fix(desktop): Stabilize Discover pagination bar width The pagination bar shifts horizontally as users navigate between pages because buildPaginationTokens returns 6 tokens at the edges (page <= 3 or page >= totalPages - 2) and 7 tokens for middle pages, with no reserved width on the .pagination container. Add min-width: 240px to .pagination so the container reserves space for the widest layout (7 tokens including two ellipses). Fixes #498. --- .../src/renderer/ui/components/chat/DiscoverWelcome.module.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/desktop/src/renderer/ui/components/chat/DiscoverWelcome.module.scss b/apps/desktop/src/renderer/ui/components/chat/DiscoverWelcome.module.scss index e37fcca1..c3141534 100644 --- a/apps/desktop/src/renderer/ui/components/chat/DiscoverWelcome.module.scss +++ b/apps/desktop/src/renderer/ui/components/chat/DiscoverWelcome.module.scss @@ -241,6 +241,7 @@ gap: 4px; flex-wrap: wrap; justify-content: flex-end; + min-width: 240px; } .page-ellipsis {