Skip to content

Input Field Cursor Width inconsistent #1850

@jbirnick

Description

@jbirnick

Description

The cursor in the input field is sometimes thinner and sometimes wider, and least on LoDPI screens.

Environment

  • GPUI: latest git 9f90c1a
  • GPUI Component: latest git fceaa5c
  • Platform: Arch Linux
  • 1080p monitor

Steps to Reproduce

  1. Make sure you're on a LoDPI screen, e.g. a 1080p Full-HD monitor.
  2. Clone the gpui-component repo.
  3. Run cargo run --release and navigate to the input field.
  4. Enter some text text and move the cursor left and right. Look closely at the cursor. Sometimes it will be 1px wide and sometimes 2px wide.

Screenshots

Image Image

Video: https://youtu.be/knRh39DDSKw

Expected

The cursor should have the same width all the time.

Actual

The cursor is sometimes 1px wide and sometimes 2px wide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions