From 6ae55009e70ddd7b56885e7f804095de4c67fa9f Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sun, 28 Sep 2025 17:25:02 -0400 Subject: [PATCH] Fixed search box centering consistency - removed redundant container wrapper - **Eliminated duplicate container** from VersionSelector component - **Matches other page structures** - all pages now use App's main container - **Consistent centering across all pages** - search bar positioned identically - **No more shifting** when navigating between version selector and book selector Version selector layout now perfectly matches BookSelector, ChapterSelector, BibleReader! --- frontend/src/components/VersionSelector.tsx | 124 ++++++++++---------- 1 file changed, 61 insertions(+), 63 deletions(-) diff --git a/frontend/src/components/VersionSelector.tsx b/frontend/src/components/VersionSelector.tsx index c9abafe3..801e6985 100644 --- a/frontend/src/components/VersionSelector.tsx +++ b/frontend/src/components/VersionSelector.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Book, Users, Search } from 'lucide-react'; +import { Search } from 'lucide-react'; interface VersionSelectorProps { onVersionSelect: (version: 'esv' | 'nkjv') => void; @@ -9,75 +9,73 @@ interface VersionSelectorProps { const VersionSelector: React.FC = ({ onVersionSelect, onSearchClick }) => { return (
+ {/* Search Bar */} +
+
+ + +
+
+ {/* Version Selection */} -
- {/* Search Bar */} -
-
- - -
-
+
+

+ Choose Your Translation +

+

+ Select a Bible translation to begin your study +

+
-
-

- Choose Your Translation -

-

- Select a Bible translation to begin your study -

-
- -
- {/* ESV Card */} -
onVersionSelect('esv')} - className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 cursor-pointer transform hover:-translate-y-1" - > -
-
-
- ESV Logo -
-

- ESV -

-

- English Standard Version -

-

- A literal translation that balances clarity and dignity -

+
+ {/* ESV Card */} +
onVersionSelect('esv')} + className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 cursor-pointer transform hover:-translate-y-1" + > +
+
+
+ ESV Logo
+

+ ESV +

+

+ English Standard Version +

+

+ A literal translation that balances clarity and dignity +

+
- {/* NKJV Card */} -
onVersionSelect('nkjv')} - className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 cursor-pointer transform hover:-translate-y-1" - > -
-
-
- NKJV Logo -
-

- NKJV -

-

- New King James Version -

-

- Updated language while preserving the majesty of the original -

+ {/* NKJV Card */} +
onVersionSelect('nkjv')} + className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 cursor-pointer transform hover:-translate-y-1" + > +
+
+
+ NKJV Logo
+

+ NKJV +

+

+ New King James Version +

+

+ Updated language while preserving the majesty of the original +