From e206833d856e399496158891122ddf7e35a3afdd Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Fri, 7 Jun 2024 12:33:35 +0100 Subject: [PATCH] reajust css --- fleet_management/fleet_management/doctype/trip/trip_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fleet_management/fleet_management/doctype/trip/trip_list.js b/fleet_management/fleet_management/doctype/trip/trip_list.js index 70f9f12..7bbe802 100644 --- a/fleet_management/fleet_management/doctype/trip/trip_list.js +++ b/fleet_management/fleet_management/doctype/trip/trip_list.js @@ -24,6 +24,7 @@ function create_dialog_and_init_map(frm) { modalContent.css("width", "80vw"); modalContent.css("height", "80vh"); modalContent.css("max-width", "none"); // Ensure no max-width restrictions + modalContent.css("margin", "auto"); // Center the modal // Add hide event to reload the page when the dialog is closed dialog.onhide = function () { @@ -46,7 +47,7 @@ function create_dialog_and_init_map(frm) { var currentMap = null; function init_map(frm) { - console.table(window.L); + //console.table(window.L); console.log("Initializing map with MyLeaflet..."); if (currentMap !== null) { currentMap.remove(); // Remove the previous map if it exists