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**

![Automation rules row
alignment](https://raw.githubusercontent.com/whisper-money/whisper-money/automations-table/.github/screenshots/automation-rules-row-alignment.png)

**Labels**

![Labels row
alignment](https://raw.githubusercontent.com/whisper-money/whisper-money/automations-table/.github/screenshots/labels-row-alignment.png)
This commit is contained in:
Víctor Falcón 2026-06-30 12:37:20 +02:00 committed by GitHub
parent a37481fb71
commit e631cbba69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -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(),

View File

@ -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(),