Composer require script is cut-off for long module machine names

Created on 9 September 2024, 5 months ago
Updated 15 September 2024, 5 months ago

Problem/Motivation

For modules/projects with long machine names the composer require command displayed for installing the module is (seemingly) incomplete.

Steps to reproduce

  1. Go to the Search API Autocomplete project page
  2. Scroll down to the latest 8.x release
  3. Next to “Install:” you will see a one-line text area which just displays composer require 'drupal/ OR search_api_autocomplete:^1.9'. The complete text (composer require 'drupal/search_api_autocomplete:^1.9' is actually in the HTML for the field, and will be correctly copied when pressing the button next to the field, but the long command wraps around so not everything is displayed at once, which can be confusing.

Proposed resolution

Some CSS change to either make the font smaller, or the text area wider, or otherwise make sure the complete command is displayed even for long machine names.

🐛 Bug report
Status

Active

Version

1.9

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @barksbytes
  • 🇦🇹Austria drunken monkey Vienna, Austria

    This section is automatically generated, so I as the module maintainer can’t do anything to fix this.
    Anyways, the command is complete, it just wraps to two lines because it’s too long, so not everything is displayed at once. You still get the whole command when clicking the “Copy” button next to it.

    Moving this to the (hopefully correct) d.o issue queue for the people who could actually fix this, if they think it’s worth it. I do agree that this can be confusing for new users.

Production build 0.71.5 2024