Skip to content

Commit

Permalink
Fix: Data Table Alignment (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalmohammed18 authored Dec 11, 2024
1 parent ef13da6 commit e88f7a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/DataTable/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const DataTable = <TData,>(props: DataTableProps<TData>): ReactNode => {
{headerGroup.headers.map((header) => {
const sortDirection = header.column.getIsSorted();
const columnAlignment =
header.column.columnDef.meta?.align || "center";
header.column.columnDef.meta?.align || "left";
return (
<TableCell
align={columnAlignment}
Expand Down Expand Up @@ -257,7 +257,7 @@ const DataTable = <TData,>(props: DataTableProps<TData>): ReactNode => {
{row.getVisibleCells().map((cell) => {
const cellValue = cell.getValue();
const columnAlignment =
cell.column.columnDef.meta?.align || "center";
cell.column.columnDef.meta?.align || "left";
let title = "";
if (
["string", "number", "boolean"].includes(
Expand Down
2 changes: 1 addition & 1 deletion src/components/GridCellExpand/GridCellExpand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const GridCellExpand = React.memo(function GridCellExpand(
onClick = () => {},
href,
target = "_self",
justifyContent = "center",
justifyContent = "start",
externalLinkArrow,
} = props;
const wrapper = React.useRef(null);
Expand Down

0 comments on commit e88f7a4

Please sign in to comment.