Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adjust Padding for "+-Button" in Note Input Field #4695

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

dipesh1903
Copy link
Contributor

@dipesh1903 dipesh1903 commented Dec 16, 2024

Description

In the input field used for writing a note, there is too much padding to the right of the "+-button" compared to the border of the input field. Please adjust it so that the right-side padding is the same as the left-side padding.

Ticket number: #4551

Changelog

Removed the margin-left css property from class .note-input__icon--add inside NoteInput.scss file.

Checklist

  • [yes] I have performed a self-review of my own code
  • [yes ] I have commented my code, particularly in hard-to-understand areas
  • [ yes ] The light- and dark-theme are both supported and tested
  • [ yes ] The design was implemented and is responsive for all devices and screen sizes
  • [yes ] The application was tested in the most commonly used browsers (e.g. Chrome, Firefox, Safari)

(Optional) Visual Changes

Before Change -
Screenshot 2024-12-16 at 2 33 46 PM

After change -
Screenshot 2024-12-16 at 2 34 05 PM

Copy link
Member

@Schwehn42 Schwehn42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the contribution @dipesh1903!

Just reviewed this, and looks good all in all. One "issue" I noticed is the spare gap between the AddIcon and text field:

Screenshot 2024-12-16 at 14 02 05

This wastes quite some space, so I would suggest changing things up:

  • .note-input
    • remove justify-content: space-between
    • add gap: $spacing--xxs
  • .note-input__input
    • remove width: calc(100% - 20px - 40px)
    • add width: 100%

The result looks like this:
Screenshot 2024-12-16 at 14 02 44

Which is a slight improvement over the current design. @SelinaBuff lmk what you think?

@Schwehn42 Schwehn42 added the Changes Requested Changes requested by the reviewer label Dec 16, 2024
Copy link
Member

@Schwehn42 Schwehn42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we want to keep it like this for the time being, so LGTM 👍

@Schwehn42 Schwehn42 added this pull request to the merge queue Dec 16, 2024
@Schwehn42 Schwehn42 removed the Changes Requested Changes requested by the reviewer label Dec 16, 2024
Merged via the queue into inovex:main with commit e71d8eb Dec 16, 2024
10 of 12 checks passed
@dipesh1903
Copy link
Contributor Author

Thanks @Schwehn42 for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants