Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] adjust margin for map save modal to show Save button without scrolling (#2954)

Igor Dykhta4aef54a93525
diff --git a/src/components/src/modals/save-map-modal.tsx b/src/components/src/modals/save-map-modal.tsx
index ea3e731ea..e210e8214 100644
--- a/src/components/src/modals/save-map-modal.tsx
+++ b/src/components/src/modals/save-map-modal.tsx
@@ -61,6 +61,10 @@ const StyledSaveMapModal = styled.div.attrs({
}
`;
+const StyledCompactExportSection = styled(StyledExportSection)`
+ margin: 5px 0;
+`;
+
const nop = () => {
return;
};
@@ -224,7 +228,7 @@ function SaveMapModalFactory() {
</div>
</StyledExportSection>
) : null}
- <StyledExportSection>
+ <StyledCompactExportSection>
<div className="description image-preview-panel">
<ImagePreview
exportImage={exportImage}
@@ -246,7 +250,7 @@ function SaveMapModalFactory() {
onChangeInput={onChangeInput}
/>
)}
- </StyledExportSection>
+ </StyledCompactExportSection>
</>
)}
{providerError ? (