fix(settings): vertically center rows in automation rules and labels tables
The shared TableCell defaults to align-top, so the title, badges and actions menu sat slightly above the row's vertical center. Override the data cells with align-middle in both settings tables so every element lines up with the centered actions button.
This commit is contained in:
parent
d55e15bb4f
commit
7d99fd5a63
|
|
@ -155,7 +155,10 @@ function AutomationRuleRow({
|
|||
{row
|
||||
.getVisibleCells()
|
||||
.map((cell: Cell<AutomationRule, unknown>) => (
|
||||
<TableCell key={cell.id}>
|
||||
<TableCell
|
||||
key={cell.id}
|
||||
className="align-middle"
|
||||
>
|
||||
{flexRender(
|
||||
cell.column.columnDef.cell,
|
||||
cell.getContext(),
|
||||
|
|
|
|||
|
|
@ -121,7 +121,10 @@ function LabelRow({ row }: { row: Row<Label> }) {
|
|||
{row
|
||||
.getVisibleCells()
|
||||
.map((cell: Cell<Label, unknown>) => (
|
||||
<TableCell key={cell.id}>
|
||||
<TableCell
|
||||
key={cell.id}
|
||||
className="align-middle"
|
||||
>
|
||||
{flexRender(
|
||||
cell.column.columnDef.cell,
|
||||
cell.getContext(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue