Skip to content

Password generator: Length input collapsed to zero width (input-group container too narrow) #139

Description

@b-o-r-i-s975

Version

Plugin: accounts 3.2.1
GLPI: 11.x

Problem

On the account form, the password generator section shows "Length" and "characters" but the number input between them is collapsed to zero width, the value 1-500 is not visible.

Image

Root Cause

In templates/account.html.twig around line 566-571, two inline styles conflict:

  1. The .input-group container has style="max-width: 220px;", too narrow for three flex children (label + input + span).
  2. The <input type="number"> has style="max-width: 80px;" but no min-width, so Bootstrap flexbox crushes it to zero width when the container runs out of space.

Fix

Either:

  • Increase container max-width to at least 300px, or remove it entirely
  • Add min-width: 55px to the input

Workaround (GLPI UI Customization CSS)

#length { min-width: 55px !important; }
.input-group:has(#length) { max-width: 320px !important; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions