added button back from map and fix post on map

This commit is contained in:
SlimusMinus
2026-09-08 23:20:27 +03:00
parent ee5c219707
commit 204627565f
9 changed files with 238 additions and 344 deletions

View File

@@ -321,7 +321,7 @@ export default function MainFeed() {
: feed.error;
return (
<div className={`f-app${isSearchView ? " f-search-view" : ""}${isMapView ? " f-map-view" : ""}`}>
<div className={`f-app${sidebarOpen ? " f-sb-open" : ""}${isSearchView ? " f-search-view" : ""}${isMapView ? " f-map-view" : ""}`}>
<Sidebar
open={sidebarOpen}
activeNav={activeNav}
@@ -342,12 +342,13 @@ export default function MainFeed() {
/>
<div className="f-main f-main-feed">
<FeedTopBar
onMenuClick={() => setSidebarOpen(v => !v)}
typeFilter={typeFilter}
onTypeFilterChange={setTypeFilter}
/>
{isSearchView && (
<FeedTopBar
onMenuClick={() => setSidebarOpen(v => !v)}
typeFilter={typeFilter}
onTypeFilterChange={setTypeFilter}
/>
)}
<div className="f-search-panel">
<FeedSearchBar value={searchQuery} onChange={setSearchQuery} t={t} />
@@ -370,6 +371,13 @@ export default function MainFeed() {
) : (
<>
<div className="f-feed" ref={feedRef}>
{!isSearchView && (
<FeedTopBar
onMenuClick={() => setSidebarOpen(v => !v)}
typeFilter={typeFilter}
onTypeFilterChange={setTypeFilter}
/>
)}
<FeedContent
loading={listLoading}
cityLoading={cityFeed.cityLoading}

View File

@@ -78,7 +78,7 @@ export default function ReviewsPage() {
}, [profileModalOpen, isAuthenticated, user?.id]);
return (
<div className="f-app">
<div className={`f-app${sidebarOpen ? " f-sb-open" : ""}`}>
<Sidebar
open={sidebarOpen}
activeNav="reviews"