Defect #36455

Text custom field values are not aligned with their labels when text formatting is enabled

Added by Go MAEDA 10 months ago. Updated 10 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Issues
Target version:4.1.6
Resolution:Fixed Affected version:

Description

The value of a text type custom field with text formatting enabled is not aligned with the label. This is essentially the same problem with #35642.

custom-value-is-not-aligned-with-label.png (54.2 KB) Go MAEDA, 2022-01-20 03:11


Related issues

Related to Redmine - Defect #35642: Long text custom field values are not aligned with their ... Closed

Associated revisions

Revision 21372
Added by Go MAEDA 10 months ago

Text custom field values are not aligned with their labels when text formatting is enabled (#36455).

Patch by Go MAEDA.

Revision 21373
Added by Go MAEDA 10 months ago

Merged r21372 from trunk to 4.2-stable (#36455).

Revision 21374
Added by Go MAEDA 10 months ago

Merged r21372 from trunk to 4.1-stable (#36455).

History

#1 Updated by Go MAEDA 10 months ago

  • Target version set to 4.1.6

The patch below fixes the issue. Setting the target version to 4.1.6.

diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 4e998c11e..6ef5f8ef8 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -542,6 +542,7 @@ div.issue .attributes {margin-top: 2em;}
 div.issue .attributes .attribute {padding-left:180px; clear:left; min-height: 1.8em;}
 div.issue .attributes .attribute .label {width: 170px; margin-left:-180px; font-weight:bold; float:left;  overflow:hidden; text-overflow: ellipsis;}
 div.issue .attribute .value {overflow:auto; text-overflow: ellipsis;}
+div.issue .attribute.string_cf .value .wiki p {margin-top: 0; margin-bottom: 0;}
 div.issue .attribute.text_cf .value .wiki p:first-of-type {margin-top: 0;}
 div.issue.overdue .due-date .value { color: #c22; }
 body.controller-issues h2.inline-flex {padding-right: 0}

#2 Updated by Go MAEDA 10 months ago

  • Related to Defect #35642: Long text custom field values are not aligned with their labels added

#3 Updated by Go MAEDA 10 months ago

  • Subject changed from Text custom field values are not aligned with their labels to Text custom field values are not aligned with their labels when text formatting is enabled
  • Status changed from New to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

#4 Updated by Go MAEDA 10 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF