From c146a8f7ec00e86a40e14b1612c60429f9895b8f Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 22:20:01 +0200 Subject: [PATCH] style: make reading progress indicator smaller and more subtle - Reduced bar height from 4px to 2px (h-0.5) - Made container more compact: py-1 instead of py-2 - Tiny text size: 0.625rem (10px) with tabular numbers - Simplified background: less opacity, lighter blur - Show just % or checkmark when complete - Reduced reader bottom padding from 4rem to 2rem - More minimalist and less intrusive design --- src/components/ReadingProgressIndicator.tsx | 16 ++++++++-------- src/styles/components/reader.css | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/ReadingProgressIndicator.tsx b/src/components/ReadingProgressIndicator.tsx index e772f525..8de3f907 100644 --- a/src/components/ReadingProgressIndicator.tsx +++ b/src/components/ReadingProgressIndicator.tsx @@ -16,13 +16,13 @@ export const ReadingProgressIndicator: React.FC = const clampedProgress = Math.min(100, Math.max(0, progress)) return ( -
-
+
+
@@ -30,10 +30,10 @@ export const ReadingProgressIndicator: React.FC =
{showPercentage && ( -
- {isComplete ? '✓ Complete' : `${clampedProgress}%`} + {isComplete ? '✓' : `${clampedProgress}%`}
)}
diff --git a/src/styles/components/reader.css b/src/styles/components/reader.css index 992f82ed..4d9675f4 100644 --- a/src/styles/components/reader.css +++ b/src/styles/components/reader.css @@ -8,7 +8,7 @@ overflow: hidden; max-width: 900px; margin: 0 auto; - padding-bottom: 4rem; /* Add space for progress indicator */ + padding-bottom: 2rem; /* Add space for progress indicator */ } /* Video container - responsive wrapper following react-player docs */