Skip to content

small-user-avatars needs more spacing before a user mention #7002

Closed

Description

@ItsHarper

Description

The avatar starts significantly closer to the previous word than a normal letter would, which looks especially bad when the user mention is the first word of a new sentence.

Zoomed in using Windows Magnifier at 600%, with a vertical line added:
image

Zoomed at 110% using Firefox:
image

How to replicate the issue + URL

electron/forge#3391 (comment)

Extension version

23.10.5

Browser(s) used

Firefox

Activity

  1. added
    small
    on Oct 28, 2023
  2. fregante commented on Oct 28, 2023

    @fregante
    Member

    Great, yes! Let's try to add it via ' ' instead of CSS, because margins still apply when the mention appears at the beginning of the line

  3. Katsute commented on Oct 29, 2023

    @Katsute
    Contributor

    nvm, ignore this comment

    removed

    Caused by

    Can be resolved by removing .rgh-small-user-avatars from user mention avatars

    className="avatar avatar-user mb-1 mr-1 rgh-small-user-avatars"

  4. Katsute commented on Oct 29, 2023

    @Katsute
    Contributor

    Great, yes! Let's try to add it via ' ' instead of CSS, because margins still apply when the mention appears at the beginning of the line

    Margin is actually needed because the avatar bleeds out of the element, putting it before the start line

    image

    image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions