diff --git a/src/index.css b/src/index.css index 1115274..895f18d 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,6 @@ @import "tailwindcss"; @plugin "@tailwindcss/typography"; + button { cursor: pointer; } diff --git a/src/pages/MapPage/edit_icon.svg b/src/pages/MapPage/edit_icon.svg deleted file mode 100644 index 90f3b58..0000000 --- a/src/pages/MapPage/edit_icon.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - \ No newline at end of file diff --git a/src/pages/MapPage/index.tsx b/src/pages/MapPage/index.tsx index 4f419ec..7f0f1bc 100644 --- a/src/pages/MapPage/index.tsx +++ b/src/pages/MapPage/index.tsx @@ -57,10 +57,6 @@ import Source from "ol/source/Source"; import { FeatureLike } from "ol/Feature"; import { createEmpty, extend, getCenter } from "ol/extent"; -// Icons -import EditIcon from './edit_icon.svg'; -import LineIcon from './line_icon.svg'; - // --- CUSTOM SCROLLBAR STYLES --- const scrollbarStyles = ` .scrollbar-hide { @@ -645,7 +641,6 @@ const saveActiveSection = (section: string | null): void => { } }; - // --- TYPE DEFINITIONS --- interface MapServiceConfig { target: HTMLElement; @@ -2102,7 +2097,7 @@ const MapControls: React.FC = ({ mode: "edit", title: "Редактировать", longTitle: "Редактирование", - icon: Редактировать, + icon: , action: () => mapService.activateEditMode(), }, { @@ -2123,7 +2118,7 @@ const MapControls: React.FC = ({ mode: "drawing-route", title: "Маршрут", longTitle: "Добавить маршрут (Правый клик для завершения)", - icon: Маршрут, + icon: , action: () => mapService.startDrawing("LineString", "route"), }, diff --git a/src/pages/MapPage/line_icon.svg b/src/pages/MapPage/line_icon.svg deleted file mode 100644 index 09f7508..0000000 --- a/src/pages/MapPage/line_icon.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - \ No newline at end of file diff --git a/src/widgets/Layout/index.tsx b/src/widgets/Layout/index.tsx index 108aae6..22f2357 100644 --- a/src/widgets/Layout/index.tsx +++ b/src/widgets/Layout/index.tsx @@ -48,21 +48,24 @@ export const Layout: React.FC = observer(({ children }) => { - - - - +
+ + + + +
+
{(() => {