Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
table alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadkoren committed Jan 25, 2024
1 parent 4d0eec5 commit 9196a56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.experiments_wrapper {
padding-inline: 80px;
padding-block: 40px;
margin-block: 60px;
}

.title_options_container {
Expand Down Expand Up @@ -46,12 +47,8 @@
}

.experiments_table {
margin-block: 60px;

th, td {
text-align: left;
}

text-align: left;

th:first-child,
td:first-child {
text-align: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
}

.experiment_table {
text-align: center;

th:first-child,
td:first-child {
inline-size: 80px;
Expand Down
10 changes: 3 additions & 7 deletions portal/src/app/shared/components/table/Table.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ table {

.table_content {
background-color: var($backgroundColorWhite);

td {
padding: 16px;
border-block-end: 1px solid var($backgroundColorGray);
text-align: center;
vertical-align: middle;
}
padding: 16px;
border-block-end: 1px solid var($backgroundColorGray);
vertical-align: middle;
}
2 changes: 1 addition & 1 deletion portal/src/app/shared/components/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const Table = <T extends any>({ headers, data, className }: TableProps<T>
{table.getRowModel().rows.map((row: Row<T>) => (
<tr key={row.id}>
{row.getVisibleCells().map((cell: Cell<T, unknown>) => (
<td key={cell.id}>
<td key={cell.id} className={styles.table_content}>
{flexRender(cell.column.columnDef.cell, cell.getContext())}
</td>
))}
Expand Down

0 comments on commit 9196a56

Please sign in to comment.