Skip to content

Commit 77d90f4

Browse files
committed
New layout, Unnecessary labels removed
1 parent f49040e commit 77d90f4

2 files changed

Lines changed: 5 additions & 24 deletions

File tree

src/App.tsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,9 @@ function App() {
6666

6767
return (
6868
<div className="min-h-screen bg-gray-50">
69-
<header className="bg-white shadow-sm border-b">
70-
<div className="max-w-7xl mx-auto px-2 sm:px-4 lg:px-6">
71-
<div className="flex justify-between items-center h-10 sm:h-12">
72-
<div className="flex items-center">
73-
<h1 className="text-sm sm:text-lg font-bold text-gray-900">
74-
Парковки СПб
75-
</h1>
76-
</div>
77-
</div>
78-
</div>
79-
</header>
8069

81-
<main className="max-w-7xl mx-auto px-1 sm:px-2 lg:px-4 py-1">
82-
<div className="relative h-[calc(100vh-100px)] w-full">
70+
<main className="mx-auto">
71+
<div className="relative h-[calc(100vh)] w-full">
8372
<MapContainer
8473
zones={zones}
8574
mapState={mapState}
@@ -107,11 +96,11 @@ function App() {
10796
</span>
10897
)}
10998

110-
{loading !== "idle" && (
99+
{loading === "loading" && (
111100
<div className="flex items-center space-x-1">
112101
<div className="animate-spin rounded-full h-2 w-2 sm:h-3 sm:w-3 border-b-2 border-blue-600"></div>
113102
<span className="text-xs sm:text-sm text-gray-600">
114-
{loading === "loading" ? "Загрузка..." : "Обработка..."}
103+
Загрузка...
115104
</span>
116105
</div>
117106
)}

src/components/Map/MapPoints.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const MapPoints: React.FC<MapPointsProps> = ({ zones, onZoneClick }) => {
125125
const popupContent = (
126126
<div className="map-popup min-w-[200px]">
127127
<h3 className="font-semibold text-gray-800 mb-2">
128-
Зона {zone.zone_id}
128+
Парковка {zone.zone_id}
129129
</h3>
130130

131131
{zone.zone_type && (
@@ -195,14 +195,6 @@ export const MapPoints: React.FC<MapPointsProps> = ({ zones, onZoneClick }) => {
195195
</span>
196196
</div>
197197
)}
198-
199-
{zone.camera_id !== undefined && (
200-
<div className="mt-2 pt-2 border-t border-gray-200">
201-
<span className="text-xs text-gray-500">
202-
Камера ID: {String(zone.camera_id)}
203-
</span>
204-
</div>
205-
)}
206198
</div>
207199
)
208200

0 commit comments

Comments
 (0)