Skip to content

[ux] Geometry field label takes unnecessary space  #200

@atif09

Description

@atif09

Describe the bug
The "Geometry:" label (see the screenshot below) you see in http://127.0.0.1:8000/admin/django_loci/location/add/ has the forced min-width and width CSS properties applied from Django admin's .aligned label rule. This makes the label take up unnecessary horizontal space regardless of actual text length.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to http://127.0.0.1:8000/admin/django_loci/location/add/
  2. See the horizontal empty space that the 'Geometry:' label is taking up

Expected behavior
The 'Geometry:' label should only take up the space needed for the text, allowing the map more horizontal space

Screenshots

Image

System Information:

  • OS: Ubuntu 24.04 LTS
  • Python Version: Python 3.11.2
  • Django Version: Django 4.2.5
  • Browser and Browser Version (if applicable): Chromium 144.0.7559.97

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions