Skip to content

An open source alternative to Tableau. Embeddable visual analytic

feat(ui): layout

kyushod5d96a1e175c
diff --git a/packages/graphic-walker/src/fields/datasetFields/dimFields.tsx b/packages/graphic-walker/src/fields/datasetFields/dimFields.tsx
index 5abb4c8f..4027897e 100644
--- a/packages/graphic-walker/src/fields/datasetFields/dimFields.tsx
+++ b/packages/graphic-walker/src/fields/datasetFields/dimFields.tsx
@@ -19,7 +19,7 @@ const DimFields: React.FC<Props> = props => {
return (
<>
<FieldPill
- className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full truncate"
+ className="pt-0.5 pb-0.5 pl-2 pr-2 mx-0 m-1 text-xs hover:bg-blue-100 rounded-full truncate border border-transparent"
ref={provided.innerRef}
isDragging={snapshot.isDragging}
{...provided.draggableProps}
@@ -28,7 +28,7 @@ const DimFields: React.FC<Props> = props => {
<DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;
</FieldPill>
{
- <FieldPill className={`pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border truncate ${snapshot.isDragging ? '' : 'hidden'}`}
+ <FieldPill className={`pt-0.5 pb-0.5 pl-2 pr-2 mx-0 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border truncate ${snapshot.isDragging ? '' : 'hidden'}`}
isDragging={snapshot.isDragging}
>
<DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;
diff --git a/packages/graphic-walker/src/fields/datasetFields/index.tsx b/packages/graphic-walker/src/fields/datasetFields/index.tsx
index 490cf315..8b5e425d 100644
--- a/packages/graphic-walker/src/fields/datasetFields/index.tsx
+++ b/packages/graphic-walker/src/fields/datasetFields/index.tsx
@@ -16,7 +16,7 @@ const DatasetFields: React.FC = (props) => {
const { t } = useTranslation("translation", { keyPrefix: "main.tabpanel.DatasetFields" });
return (
- <DSContainer className="flex md:flex-col" style={{ paddingBlock: 0 }}>
+ <DSContainer className="flex md:flex-col" style={{ paddingBlock: 0, paddingInline: '0.6em' }}>
<h4 className="text-xs mb-2 flex-grow-0 cursor-default select-none mt-2">{t("field_list")}</h4>
<div className="pd-1 overflow-y-auto" style={{ maxHeight: "380px", minHeight: '100px' }}>
<Droppable droppableId="dimensions" direction="vertical">
diff --git a/packages/graphic-walker/src/fields/datasetFields/meaFields.tsx b/packages/graphic-walker/src/fields/datasetFields/meaFields.tsx
index 3eb34ae3..09514860 100644
--- a/packages/graphic-walker/src/fields/datasetFields/meaFields.tsx
+++ b/packages/graphic-walker/src/fields/datasetFields/meaFields.tsx
@@ -19,7 +19,7 @@ const MeaFields: React.FC<Props> = props => {
return (
<>
<FieldPill
- className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full truncate"
+ className="pt-0.5 pb-0.5 pl-2 pr-2 mx-0 m-1 text-xs hover:bg-blue-100 rounded-full truncate border border-transparent"
isDragging={snapshot.isDragging}
ref={provided.innerRef}
{...provided.draggableProps}
@@ -41,7 +41,7 @@ const MeaFields: React.FC<Props> = props => {
}
</FieldPill>
{
- <FieldPill className={`pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border truncate ${snapshot.isDragging ? '' : 'hidden'}`}
+ <FieldPill className={`pt-0.5 pb-0.5 pl-2 pr-2 mx-0 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border truncate ${snapshot.isDragging ? '' : 'hidden'}`}
isDragging={snapshot.isDragging}
>
<DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;