Skip to content

Fix (UI) - Text area fields alignment#1176

Open
RomainLvr wants to merge 2 commits intomainfrom
fix/text-area-field-alignment
Open

Fix (UI) - Text area fields alignment#1176
RomainLvr wants to merge 2 commits intomainfrom
fix/text-area-field-alignment

Conversation

@RomainLvr
Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes !42921
  • Here is a brief description of what this PR does

In form rendering, text area fields are not aligned correctly.

  • Removed label_class : "" and input_class: "" — these empty strings were overriding the default values (col-xxl-5 / col-xxl-7) of the horizontalField macro, breaking the alignment
  • Removed align_label_right: false — the rich text label was no longer aligned to the right like the other fields
  • Added label_class: col-xxl-2 and input_class: col-xxl-10 — this exactly matches the style that GLPI core uses for its own rich text fields (e.g., “Description” in project tasks), with a narrow label to maximize editor space.

Screenshots (if appropriate):

Before :

image

After :

image

@RomainLvr RomainLvr requested review from Rom1-B and stonebuzz April 2, 2026 09:36
@RomainLvr RomainLvr self-assigned this Apr 2, 2026
Copy link
Copy Markdown
Contributor

@stonebuzz stonebuzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CAn you check from other UI (Ticket, Dropdown, User) which have different layout

@RomainLvr
Copy link
Copy Markdown
Contributor Author

CAn you check from other UI (Ticket, Dropdown, User) which have different layout

That looks good

image image

@stonebuzz
Copy link
Copy Markdown
Contributor

Not from User ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants