Skip to content

Commit fb7e424

Browse files
committed
[attribute] alignment issue for checkbox in ItemForm and Selection
moved alignment into CSS
1 parent 40843ff commit fb7e424

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/gephi-lite/src/components/data/Attribute.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const AttributeRenderers: {
6565
return !isNil(value) ? <>{value.toLocaleString(i18n.language)}</> : null;
6666
},
6767
boolean: ({ value }) => (
68-
<div className="form-check h-100 ms-1">
68+
<div className="form-check h-100 ">
6969
<Checkbox className="form-check-input disabled" checked={value} />
7070
</div>
7171
),
@@ -172,7 +172,7 @@ export const AttributeEditors: {
172172
);
173173
},
174174
boolean: ({ value, onChange, id, autoFocus }) => (
175-
<div className="form-check h-100 ms-1">
175+
<div className="form-check h-100 ">
176176
<Checkbox
177177
className="form-check-input"
178178
id={id}

packages/gephi-lite/src/styles/_data-table.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,9 @@ $table-editable-columns-cell-hover-bg: color-mix(
184184
}
185185
}
186186
}
187+
188+
.data-cell {
189+
.form-check {
190+
@extend .ms-1;
191+
}
192+
}

0 commit comments

Comments
 (0)