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

center the notifications vertically and horizontally #203

Closed
wants to merge 1 commit into from

Conversation

swarajpure
Copy link
Contributor

Fixes #202
I have also added slight margin between the orange element and the text

Before:
image

After:
image

@swarajpure swarajpure added the enhancement New feature or request label Jan 18, 2022
@swarajpure swarajpure self-assigned this Jan 18, 2022
margin-top: 30px;
padding-left: 20px;
max-width: 800px;
width: 800px;

Choose a reason for hiding this comment

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

Was there any specific scenario/reason due to which you went ahead withwidth:800px

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After making it into flex, the notifications started taking 100% of width, did not want that. So I hardcoded the existing value of max-width and made it to width. Making this dynamic might not be a good idea in my opinion, because the content is limited, extending the notification holders while the text length remains same, might look a bit off. Let me know what you think :)

Choose a reason for hiding this comment

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

Are we handling the same in different devices?

Choose a reason for hiding this comment

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

Would we observe viewing issues in different screens for example 2k screen or a mobile
Is it visually tested for the same?

Choose a reason for hiding this comment

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

Could we have a mobile view too please

Choose a reason for hiding this comment

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

Copy link
Contributor

@rohan09-raj rohan09-raj left a comment

Choose a reason for hiding this comment

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

Do these changes make the page responsive as well ??

@@ -1,8 +1,12 @@
.notifications-holder {
display: flex;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we even need flex? we have divs so anyhow they are going on new line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Flex is there to center the notifications

@rohan09-raj
Copy link
Contributor

The issue is already addressed in #266.
Therefore, closing the PR

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

Successfully merging this pull request may close these issues.

Center the notifications
4 participants