fix(settings): vertically center rows in automation rules and labels tables (#615)
## What
Row contents in the **Automation rules** and **Labels** settings tables
were not vertically centered — the title, badges and the actions ("…")
button sat slightly above the row's vertical center.
## Why
The shared `TableCell` defaults to `align-top`, while the actions button
is centered. That mismatch pushed the text/badges up relative to the
menu. Overriding the data cells with `align-middle` in both tables makes
every element line up.
## Changes
- `resources/js/pages/settings/automation-rules.tsx` — `align-middle` on
body cells
- `resources/js/pages/settings/labels.tsx` — `align-middle` on body
cells
## Before / After
**Automation rules**

**Labels**

This commit is contained in:
parent
a37481fb71
commit
e631cbba69
|
|
@ -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