fix: Fix icons in `top map sightbar
This commit is contained in:
@@ -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<MapControlsProps> = ({
|
||||
mode: "edit",
|
||||
title: "Редактировать",
|
||||
longTitle: "Редактирование",
|
||||
icon: <img src={EditIcon} alt="Редактировать" className="h-4 w-4 mr-1 sm:mr-2" />,
|
||||
icon: <Pencil size={16} className="mr-1 sm:mr-2" />,
|
||||
action: () => mapService.activateEditMode(),
|
||||
},
|
||||
{
|
||||
@@ -2123,7 +2118,7 @@ const MapControls: React.FC<MapControlsProps> = ({
|
||||
mode: "drawing-route",
|
||||
title: "Маршрут",
|
||||
longTitle: "Добавить маршрут (Правый клик для завершения)",
|
||||
icon: <img src={LineIcon} alt="Маршрут" className="h-4 w-4 mr-1 sm:mr-2" />,
|
||||
icon: <RouteIcon size={16} className="mr-1 sm:mr-2" />,
|
||||
action: () => mapService.startDrawing("LineString", "route"),
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user