diff --git a/src/components/ConfigTextEditor.tsx b/src/components/ConfigTextEditor.tsx index 75656ef..e6cb592 100644 --- a/src/components/ConfigTextEditor.tsx +++ b/src/components/ConfigTextEditor.tsx @@ -13,7 +13,7 @@ export function ConfigTextEditor() { throw new Error('CGPVContent must be used within a CGPVProvider'); } - const { configJson, validateConfigJson, createMapFromConfigText, handleApplyStateToConfigFile } = cgpvContext; + const { configJson, validateConfigJson, createMapFromConfigText } = cgpvContext; const { enqueueSnackbar } = useSnackbar(); const textEditorRef = useRef(null); @@ -82,7 +82,7 @@ export function ConfigTextEditor() { top: '50%', left: '50%', transform: 'translate(-50%, -50%)', - width: { xs: '80%', sm: '90%', md: '80%', lg: '75%' }, + width: { xs: '90%', sm: '90%', md: '80%', lg: '75%' }, bgcolor: 'background.paper', border: '2px solid #ccc', borderRadius: 4, @@ -105,13 +105,9 @@ export function ConfigTextEditor() { > - - - - + + - -
{generateArray(numberOfLines).map((lineNumber) => ( @@ -128,20 +124,14 @@ export function ConfigTextEditor() { spellCheck="false" > - - - - - - + + diff --git a/src/components/MapBuilder.tsx b/src/components/MapBuilder.tsx index ab8c2fd..fe71112 100644 --- a/src/components/MapBuilder.tsx +++ b/src/components/MapBuilder.tsx @@ -26,7 +26,7 @@ export function MapBuilder() { throw new Error('CGPVContent must be used within a CGPVProvider'); } - const { configJson, handleConfigFileChange, handleConfigJsonChange, configFilePath, mapWidth, mapHeight, setMapWidth, setMapHeight } = cgpvContext; + const { configJson,handleApplyStateToConfigFile, handleConfigFileChange, handleConfigJsonChange, configFilePath, mapWidth, mapHeight, setMapWidth, setMapHeight } = cgpvContext; const [modifiedConfigJson, setModifiedConfigJson] = useState(configJson); const [isModified, setIsModified] = useState(false); @@ -87,6 +87,12 @@ export function MapBuilder() { Apply Config Changes + + + + updateProperty('map.interaction', value)} label="Map Interaction" placeholder="" /> - - Zoom Levels diff --git a/src/index.css b/src/index.css index ec85951..80daeb1 100644 --- a/src/index.css +++ b/src/index.css @@ -21,7 +21,7 @@ code { line-height: 21px; background: #282a3a; border-radius: 2px; - padding: 40px 40px; + padding: 20px 10px; height: 600px; overflow-y: auto; width: 100%;