diff --git a/app/client/package.json b/app/client/package.json index 21e28c34..3788bc78 100644 --- a/app/client/package.json +++ b/app/client/package.json @@ -1,6 +1,6 @@ { "name": "fireshare", - "version": "1.7.0", + "version": "1.7.1", "private": true, "dependencies": { "@emotion/react": "^11.9.0", diff --git a/app/client/src/App.js b/app/client/src/App.js index a3aca5d6..d78e88e8 100644 --- a/app/client/src/App.js +++ b/app/client/src/App.js @@ -55,7 +55,6 @@ export default function App() { collapsed={!drawerOpen} searchable styleToggle - cardSlider searchPlaceholder="Search title, game, or #tag..." > @@ -97,7 +96,7 @@ export default function App() { path="/games/:gameId" element={ - + @@ -121,7 +120,6 @@ export default function App() { page="/folders" collapsed={!drawerOpen} styleToggle - cardSlider mainPadding={0} searchable searchPlaceholder="Search title..." @@ -145,7 +143,7 @@ export default function App() { path="/tags/:tagId" element={ - + @@ -169,7 +167,6 @@ export default function App() { page="/images" collapsed={!drawerOpen} styleToggle - cardSlider searchable searchPlaceholder="Search title, game, or #tag..." > diff --git a/app/client/src/components/cards/VideoCards.js b/app/client/src/components/cards/VideoCards.js index 1d7ac140..dcbd3830 100644 --- a/app/client/src/components/cards/VideoCards.js +++ b/app/client/src/components/cards/VideoCards.js @@ -194,9 +194,11 @@ const VideoCards = ({ ref={containerRef} sx={{ display: 'grid', - width: isSingleColumn ? 'calc(100% + 48px)' : '100%', - justifyContent: isSingleColumn ? 'center' : 'start', - gridTemplateColumns: `repeat(auto-fill, minmax(min(100%, ${size}px), ${size}px))`, + width: '100%', + justifyContent: 'start', + gridTemplateColumns: isSingleColumn + ? '1fr' + : `repeat(auto-fill, minmax(min(100%, ${size}px), ${size}px))`, gap: 2, }} > diff --git a/app/client/src/components/nav/MainNavbar.js b/app/client/src/components/nav/MainNavbar.js index 2308f36c..98d47fb3 100644 --- a/app/client/src/components/nav/MainNavbar.js +++ b/app/client/src/components/nav/MainNavbar.js @@ -53,7 +53,7 @@ import ReleaseNotesDialog from '../modal/ReleaseNotesDialog' const drawerWidth = 240 const minimizedDrawerWidth = 57 -const CARD_SIZE_MULTIPLIER = 2 +const CARD_SIZE = 300 const DEMO_BANNER_HEIGHT = 34 const allPages = [ @@ -149,7 +149,6 @@ function MainNavbar({ collapsed = false, searchable = false, searchPlaceholder = 'Search videos...', - cardSlider = false, toolbar = true, mainPadding = 3, children, @@ -673,20 +672,10 @@ function MainNavbar({ )} - {/* Mobile: left content (when search not open) */} - {isMobile && !mobileSearchOpen && ( - - )} - - {/* Desktop: left content + centered search */} - {!isMobile && ( - - )} + {/* Desktop: left spacer + centered search */} + {!isMobile && } {searchable && !isMobile && ( - + setSearchText(value)} /> )} @@ -694,7 +683,7 @@ function MainNavbar({ {/* Right controls — always in DOM so portal target stays valid */}