Skip to content

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

[fix] Use auto width for pinned column in table preview (#2259)

Igor Da10840167c3b
diff --git a/src/components/src/common/data-table/index.tsx b/src/components/src/common/data-table/index.tsx
index 6204b7580..6b1499db3 100644
--- a/src/components/src/common/data-table/index.tsx
+++ b/src/components/src/common/data-table/index.tsx
@@ -95,7 +95,11 @@ export const Container = styled.div`
overflow: hidden;
border-top: none;
- .scroll-in-ui-thread.pinned-columns--header,
+ .scroll-in-ui-thread.pinned-columns--header {
+ overflow: hidden;
+ border-bottom: 1px solid ${props => props.theme.cellBorderColor};
+ padding-bottom: ${browserScrollBarWidth}px;
+ }
.scroll-in-ui-thread.unpinned-columns--header {
width: 100vw;
overflow: hidden;