Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: style bug

observedobserver2e6083a3b92a
diff --git a/packages/graphic-walker/package.json b/packages/graphic-walker/package.json
index 4a81c315..332df878 100644
--- a/packages/graphic-walker/package.json
+++ b/packages/graphic-walker/package.json
@@ -1,6 +1,6 @@
{
"name": "@kanaries/graphic-walker",
- "version": "0.2.2",
+ "version": "0.2.3",
"scripts": {
"dev:front_end": "vite --host",
"dev": "npm run dev:front_end",
diff --git a/packages/graphic-walker/src/App.tsx b/packages/graphic-walker/src/App.tsx
index 81e546bc..8eaf17d6 100644
--- a/packages/graphic-walker/src/App.tsx
+++ b/packages/graphic-walker/src/App.tsx
@@ -28,12 +28,13 @@ export interface EditorProps {
dataSource?: IRow[];
rawFields?: IMutField[];
spec?: Specification;
+ hideDataSourceConfig?: boolean;
i18nLang?: string;
i18nResources?: { [lang: string]: Record<string, string | any> };
}
const App: React.FC<EditorProps> = props => {
- const { dataSource = [], rawFields = [], spec, i18nLang = 'en-US', i18nResources } = props;
+ const { dataSource = [], rawFields = [], spec, i18nLang = 'en-US', i18nResources, hideDataSourceConfig } = props;
const { commonStore, vizStore } = useGlobalStore();
const [insightReady, setInsightReady] = useState<boolean>(true);
@@ -88,7 +89,7 @@ const App: React.FC<EditorProps> = props => {
return (
<div className="App">
- <DataSourceSegment preWorkDone={insightReady} />
+ { !hideDataSourceConfig && <DataSourceSegment preWorkDone={insightReady} />}
<div className='px-2 mx-2'>
<VisNav />
{/* <PureTabs tabs={[{label: 'a', key: 'a'}, {label: 'b', key: 'b'}]} selectedKey='a' onSelected={() => {}} /> */}
diff --git a/packages/graphic-walker/src/components/liteForm.tsx b/packages/graphic-walker/src/components/liteForm.tsx
index 52875fec..bdc24592 100644
--- a/packages/graphic-walker/src/components/liteForm.tsx
+++ b/packages/graphic-walker/src/components/liteForm.tsx
@@ -4,7 +4,7 @@ export const LiteForm = styled.div`
display: flex;
align-items: center;
.item{
- margin: 0em 8px;
+ margin: 5px 8px;
display: flex;
align-items: center;
>label {
diff --git a/packages/graphic-walker/src/fields/components.tsx b/packages/graphic-walker/src/fields/components.tsx
index 9263c6a5..aa929698 100644
--- a/packages/graphic-walker/src/fields/components.tsx
+++ b/packages/graphic-walker/src/fields/components.tsx
@@ -16,7 +16,7 @@ export const AestheticSegment = styled.div`
}
}
.aes-container{
-
+ overflow-x: auto;
}
`
@@ -147,6 +147,8 @@ export const Pill = styled.div<{colType: 'discrete' | 'continuous'}>`
overflow-y: hidden;
padding: 0 10px;
user-select: none;
+ text-overflow: ellipsis;
+ white-space: nowrap;
/* --tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow-color: rgb(6 182 212/0.5);
diff --git a/packages/graphic-walker/src/locales/en-US.json b/packages/graphic-walker/src/locales/en-US.json
index 2fbe7f4c..21b82521 100644
--- a/packages/graphic-walker/src/locales/en-US.json
+++ b/packages/graphic-walker/src/locales/en-US.json
@@ -9,7 +9,7 @@
"__enum__": "Mark Type",
"auto": "Auto",
"bar": "Bar",
- "line": "Polyline",
+ "line": "Line",
"area": "Area",
"trail": "Trail",
"point": "Scatter",