Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] fix dropdown list item lineheight (#1261)
Shan He9dbb9e730a64
diff --git a/src/components/common/field-token.js b/src/components/common/field-token.jsindex da113135b..549bc796f 100644--- a/src/components/common/field-token.js+++ b/src/components/common/field-token.js@@ -33,6 +33,7 @@ function FieldTokenFactory(fieldTypeDisplay, fieldColors) {padding: 0 5px;text-align: center;width: 40px;+ line-height: 20px;`;const FieldToken = ({type}) => (diff --git a/src/styles/base.js b/src/styles/base.jsindex b26d63b93..ec39c9f4b 100644--- a/src/styles/base.js+++ b/src/styles/base.js@@ -169,6 +169,7 @@ export const toolbarItemBorderRaddius = '0px';export const dropdownListBgdLT = '#FFFFFF';export const dropdownListBorderTop = '#242730';export const dropdownListBorderTopLT = '#D3D8E0';+export const dropdownListLineHeight = 20;export const dropdownWrapperZ = 100;export const dropdownWapperMargin = 4;// Switch@@ -736,6 +737,7 @@ const dropdownListAnchor = css`color: ${props => props.theme.selectColor};padding-left: 3px;font-size: ${props => props.theme.selectFontSize};+ line-height: ${props => props.theme.dropdownListLineHeight}px;`;const dropdownListSize = css`@@ -990,6 +992,7 @@ export const theme = {dropdownListBgdLT,dropdownListBorderTop,dropdownListBorderTopLT,+ dropdownListLineHeight,labelColor,labelColorLT,