Add vertical-align: top as default for table cells

Created on 30 November 2023, about 1 year ago

Problem/Motivation

Especially in the administration area, large tables can appear. This may also mean that table cells have several lines in some rows.

Currently, Gin middle-valigns table cell contents, which makes such tables hard to read.

Steps to reproduce

Open an administration page which shows a table, for example created by theme_table:

[
      '#theme' => 'table',
      '#header' => $header,
      '#rows' => $rows,
      '#empty' => $empty,
      [...]
];

with large contents in at least one cell. It's hard to read.

Proposed resolution

Set

td, th {
  vertical-align: top;
}

by default in Gin, as it's an Admin Theme, which should be able to handle such administrative UI elements like tables as good as possible.

Remaining tasks

- Discuss
- Implement
- Find possible conflicts (Views?)
- Test
- Release

User interface changes

Table contents are vertical-aligned top by default in Gin

API changes

None

Data model changes

None

Feature request
Status

Active

Version

3.0

Component
Claro 

Last updated 2 days ago

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024