Project

General

Profile

Bug #3

closed
0S DH

Bug #1: UI clean-up

New Issue formatting

Bug #3: New Issue formatting

Added by 0x01 SIA about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
07/26/2026
Due date:
% Done:

0%

Estimated time:

Description

Codex task: Make the Description editor header match the full editor width

Fix the Description field formatting on the New Issue and Edit Issue forms.

Problem

The visible header or toolbar area above the Description input does not span the full width of the editor/input container. This creates an uneven right edge and makes the editor look partially detached from its surrounding field.

Use the screenshot attached to this issue as the visual reference.

Required work

  1. Inspect the actual HTML structure produced for the Description field, including:

    • the label;
    • formatting toolbar;
    • editor wrapper;
    • textarea;
    • preview area;
    • any plugin-generated containers.
  2. Identify which RedmineOH CSS rule limits the width of the header or toolbar.

  3. Adjust the theme so that:

    • the Description editor wrapper uses the available form width;
    • the toolbar/header and textarea share the same left and right edges;
    • padding, borders and box-sizing are consistent;
    • the editor does not overflow its parent;
    • preview mode and toolbar buttons remain functional;
    • the layout adapts cleanly at narrower viewport widths.
  4. Apply the correction to both:

    • New Issue;
    • Edit Issue.
  5. Verify whether the same editor component appears in comments, wiki pages or other forms. Reuse a shared fix only when it is safe; otherwise scope it to the issue form.

  6. Avoid hard-coded pixel widths that depend on the current viewport. Prefer width: 100%, appropriate flex/grid behaviour and box-sizing: border-box.

  7. Do not modify Redmine core files. Keep the implementation inside the RedmineOH theme unless a theme-owned template override is already responsible.

Areas to verify

Test:

  • new issue form;
  • edit issue form;
  • description edit and preview modes;
  • toolbar buttons and dropdowns;
  • textarea resizing;
  • forms with and without attachments;
  • desktop and narrow/mobile widths;
  • browsers supported by the project.

Acceptance criteria

  • The Description toolbar/header spans exactly the same usable width as the textarea/editor body.
  • The editor’s left and right borders align.
  • No horizontal overflow or clipped toolbar controls are introduced.
  • Preview mode uses the same correctly aligned width.
  • The attached screenshot’s visible defect is resolved.
  • Other issue fields and unrelated text editors remain unchanged.
  • No regression appears on the issue details or issue list pages.

Deliverable

Report:

  • files changed;
  • selectors added, removed or narrowed;
  • the root cause of the width mismatch;
  • pages and viewport sizes tested;
  • whether the solution affects any other Redmine editor instances.



Files

DM Updated by DEV Machines about 2 months ago #1

  • Assignee set to DEV Machines

0S Updated by 0x01 SIA about 2 months ago #2

  • Assignee changed from DEV Machines to 0x01 SIA

0S Updated by 0x01 SIA about 2 months ago #3

  • Description updated (diff)
  • Assignee changed from 0x01 SIA to DEV Machines

DM Updated by DEV Machines about 2 months ago #4

  • Status changed from New to Feedback
  • Assignee changed from DEV Machines to 0x01 SIA

Implemented the description editor width fix in the RedmineOH theme and added a regression test.

Root cause:
The issue description editor wrapper (#issue_description_and_toolbar) was rendered inline, which caused the toolbar/header area to stop short of the editor width. The new-issue layout also needed its description label to use the same content width as the editor.

Files changed:

  • themes/redmine_oh/stylesheets/pages.css
  • test/system/issues_test.rb

Selectors added or narrowed:

  • body.controller-issues.action-new #issue-form label[for="issue_description"]
  • body.controller-issues #issue-form #issue_description_and_toolbar

Scope and effect:

  • The width adjustment is scoped to the RedmineOH issue form.
  • The label-width rule is limited to the New Issue layout.
  • The wrapper display fix also covers the issue edit form when the description editor is opened.
  • Other Redmine editors were not changed.

Verification:

  • Added a system regression test that compares the rendered description label width to the editor width on the new issue form.
  • Local execution of the system test is currently blocked in this environment because Bundler 2.7.2 is not installed, so browser-level test execution could not be completed here.

DH Updated by DEV Humans about 2 months ago #5

  • Assignee changed from 0x01 SIA to DEV Humans

DH Updated by DEV Humans about 2 months ago #6

Tested & committed

DH Updated by DEV Humans about 2 months ago #7

  • Status changed from Feedback to Resolved

0S Updated by 0x01 SIA about 2 months ago #8

  • Status changed from Resolved to Closed

DH Updated by DEV Humans about 2 months ago #9

  • Status changed from Closed to In Progress

DH Updated by DEV Humans about 2 months ago #10

  • Status changed from In Progress to Closed

Also available in: PDF Atom