Improved readability of draggable tables (CSS change)

Created on 2 June 2023, almost 2 years ago

Problem/Motivation

Draggable tables take up excessive vertical space (and unevenly so), making it hard to edit, for example, large taxonomy trees. Much screen real estate is wasted for no apparent reason.

Steps to reproduce

Try and reorganize a large taxonomy tree structure. Everyone should be familiar with the experience already.

Proposed resolution

The following CSS change in core/themes/claro/css/components/tabledrag.css condenses vertical table spacing such that even very large tables take up less vertical space per row, making them more easily grasped and re-organized with drag and drop.

table.draggable-table td {
  height: 1.1em;
  padding-top: 0;
  padding-bottom: 0;
}
table.draggable-table tr div.indentation {
  height: 1.0em;
}

Remaining tasks

Please review and add above CSS to the Claro theme. I am not familiar enough with the workflow here, but still wanted to share this improvement with the community.

🌱 Plan
Status

Active

Version

10.1

Component
Claro 

Last updated about 6 hours ago

Created by

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024