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: update avatar style to remain aligned with the input field #1037

Merged
merged 3 commits into from
Mar 22, 2023
Merged

fix: update avatar style to remain aligned with the input field #1037

merged 3 commits into from
Mar 22, 2023

Conversation

Anush008
Copy link
Member

@Anush008 Anush008 commented Mar 22, 2023

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR intends to fix the avatar misalignment in https://insights.opensauced.pizza/feed.

Related Tickets & Documents

Closes #1035.

Mobile & Desktop Screenshots/Recordings

Before the patch:
before

After the patch:
after

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

@netlify
Copy link

netlify bot commented Mar 22, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit be0067d
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/641b1973e917ab000894baae
😎 Deploy Preview https://deploy-preview-1037--design-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 22, 2023

βœ… Deploy Preview for oss-insights ready!

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit be0067d
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/641b1973f029080008a21a69
😎 Deploy Preview https://deploy-preview-1037--oss-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@0-vortex 0-vortex left a comment

Choose a reason for hiding this comment

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

LGTM, what about the lg size?

@Anush008
Copy link
Member Author

LGTM, what about the lg size?

Do you mean why the lg size? That was set before I started, intending it to be hidden for smaller devices. However, now that you've mentioned it, I think it wouldn't hurt to make it visible for smaller screens too.

@0-vortex
Copy link
Contributor

LGTM, what about the lg size?

Do you mean why the lg size? That was set before I started, intending it to be hidden for smaller devices. However, now that you've mentioned it, I think it wouldn't hurt to make it visible for smaller screens too.

Good reasoning but that is not what lg-inline does now. Tailwind aggregates from mobile first, so that class is changing the layout on lg screens. My question is if you accounted/tested on that particular screen size πŸ•

@Anush008
Copy link
Member Author

Anush008 commented Mar 22, 2023

LGTM, what about the lg size?

Do you mean why the lg size? That was set before I started, intending it to be hidden for smaller devices. However, now that you've mentioned it, I think it wouldn't hurt to make it visible for smaller screens too.

Good reasoning but that is not what lg-inline does now. Tailwind aggregates from mobile first, so that class is changing the layout on lg screens. My question is if you accounted/tested on that particular screen size πŸ•

I am not quite sure if I'm getting what you mean. The breakpoint lg applies the layout for larger screens with viewport width 1024px or higher, correct? So, the avatar will only be visible for lg screens, since it is hidden by default for smaller screens. I've tested the changes for lg screen sizes after applying the patch, they look aligned as expected.

@Anush008
Copy link
Member Author

Anush008 commented Mar 22, 2023

To add to this, the screenshots are from an lg sized screen. Maybe the cropping of the images caused the confusion.

Copy link
Contributor

@OgDev-01 OgDev-01 left a comment

Choose a reason for hiding this comment

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

LGTM πŸ•

@OgDev-01
Copy link
Contributor

Just noticed this
image

@OgDev-01
Copy link
Contributor

I believe we still want the avatar at the top when the inputs are open

@OgDev-01
Copy link
Contributor

Like this i mean
highlight-avatar

@Anush008 Anush008 changed the title fix: Used flex-col to align avatar with the input field fix: Used pt to align avatar with the input field Mar 22, 2023
@Anush008
Copy link
Member Author

Input not in focus:

not-focus-input

Input in focus:

focus-input

@OgDev-01
Copy link
Contributor

Great! πŸ‘

@brandonroberts brandonroberts changed the title fix: Used pt to align avatar with the input field fix: update avatar style to remain aligned with the input field Mar 22, 2023
@brandonroberts brandonroberts merged commit 2374f20 into open-sauced:beta Mar 22, 2023
github-actions bot pushed a commit that referenced this pull request Mar 22, 2023
## [1.37.0-beta.2](v1.37.0-beta.1...v1.37.0-beta.2) (2023-03-22)

### πŸ› Bug Fixes

* update avatar style to remain aligned with the input field ([#1037](#1037)) ([2374f20](2374f20))
@github-actions
Copy link
Contributor

πŸŽ‰ This PR is included in version 1.37.0-beta.2 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

@Anush008 Anush008 deleted the avatar-patch branch March 22, 2023 17:49
github-actions bot pushed a commit that referenced this pull request Mar 24, 2023
## [1.37.0](v1.36.0...v1.37.0) (2023-03-24)

### πŸ§‘β€πŸ’» Code Refactoring

* Deleted unused hooks, removed unused exports and imports ([#1028](#1028)) ([7b2bda2](7b2bda2))

### πŸ• Features

* add teams UI for the design system ([#994](#994)) ([499d08e](499d08e))
* added active styles to navbar links ([#1016](#1016)) ([c25c0a3](c25c0a3)), closes [#697](#697)
* create collaboration Ui components ([#1006](#1006)) ([19ff5a7](19ff5a7))
* replace react toast to radix ([#933](#933)) ([3e000be](3e000be))
* update top nav menu to be more responsive on mobile ([#1029](#1029)) ([90c1e4a](90c1e4a)), closes [#866](#866)

### πŸ› Bug Fixes

*  updated footer file to update the year dynamically ([#1040](#1040)) ([c766d95](c766d95))
* add a check for proper URL in avatarURL prop ([#1009](#1009)) ([a425279](a425279))
* center text inside upgrade access button ([#1027](#1027)) ([cf3f6cb](cf3f6cb)), closes [#1024](#1024)
* close highlight dialog when clicking outside its container ([#999](#999)) ([1bc90bb](1bc90bb))
* make delete standout ([#1026](#1026)) ([9c68287](9c68287))
* make insights hub layout inconsistent on larger screens ([#1046](#1046)) ([daaf6d1](daaf6d1))
* refresh highlights list on update and delete ([#1034](#1034)) ([bf2d951](bf2d951))
* remove dialog layout overlap on single highlight view ([#1047](#1047)) ([ea836e8](ea836e8))
* update avatar style to remain aligned with the input field ([#1037](#1037)) ([2374f20](2374f20))
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.37.0-beta.2](open-sauced/app@v1.37.0-beta.1...v1.37.0-beta.2) (2023-03-22)

### πŸ› Bug Fixes

* update avatar style to remain aligned with the input field ([#1037](open-sauced/app#1037)) ([2374f20](open-sauced/app@2374f20))
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.37.0](open-sauced/app@v1.36.0...v1.37.0) (2023-03-24)

### πŸ§‘β€πŸ’» Code Refactoring

* Deleted unused hooks, removed unused exports and imports ([#1028](open-sauced/app#1028)) ([7b2bda2](open-sauced/app@7b2bda2))

### πŸ• Features

* add teams UI for the design system ([#994](open-sauced/app#994)) ([499d08e](open-sauced/app@499d08e))
* added active styles to navbar links ([#1016](open-sauced/app#1016)) ([c25c0a3](open-sauced/app@c25c0a3)), closes [#697](open-sauced/app#697)
* create collaboration Ui components ([#1006](open-sauced/app#1006)) ([19ff5a7](open-sauced/app@19ff5a7))
* replace react toast to radix ([#933](open-sauced/app#933)) ([3e000be](open-sauced/app@3e000be))
* update top nav menu to be more responsive on mobile ([#1029](open-sauced/app#1029)) ([90c1e4a](open-sauced/app@90c1e4a)), closes [#866](open-sauced/app#866)

### πŸ› Bug Fixes

*  updated footer file to update the year dynamically ([#1040](open-sauced/app#1040)) ([c766d95](open-sauced/app@c766d95))
* add a check for proper URL in avatarURL prop ([#1009](open-sauced/app#1009)) ([a425279](open-sauced/app@a425279))
* center text inside upgrade access button ([#1027](open-sauced/app#1027)) ([cf3f6cb](open-sauced/app@cf3f6cb)), closes [#1024](open-sauced/app#1024)
* close highlight dialog when clicking outside its container ([#999](open-sauced/app#999)) ([1bc90bb](open-sauced/app@1bc90bb))
* make delete standout ([#1026](open-sauced/app#1026)) ([9c68287](open-sauced/app@9c68287))
* make insights hub layout inconsistent on larger screens ([#1046](open-sauced/app#1046)) ([daaf6d1](open-sauced/app@daaf6d1))
* refresh highlights list on update and delete ([#1034](open-sauced/app#1034)) ([bf2d951](open-sauced/app@bf2d951))
* remove dialog layout overlap on single highlight view ([#1047](open-sauced/app#1047)) ([ea836e8](open-sauced/app@ea836e8))
* update avatar style to remain aligned with the input field ([#1037](open-sauced/app#1037)) ([2374f20](open-sauced/app@2374f20))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: user image is not aligned with Create Highlight input box
4 participants