Skip to content

Fix operations line height (fix #592)

Nicolas Frandeboeuf requested to merge nicofrand/kresus:fix-line-height into master

The actual height of an operation cell is defined by the height of the children (.form-control is the highest with 34px) + 2 x 10px padding + 1px border (2px but collapsed), which makes 55px.

If we inserted a child with a height of 100px we would have a height of 121px.

In this MR, to ensure all lines have the same 55px height (in desktop view) we:

  • set the height to 55px (to be consistent with the JS and for smaller lines if there were some)
  • force the children to have a max height of 34px so that the parent cell will not be bigger than 55 (34 + 10 + 10 + 1) px.
Edited by Nicolas Frandeboeuf

Merge request reports