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] Fixed transparent element of notification widget that covered page #130 #131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing @niteshsinha17.
This surely fixes the bug, but I don't think it is the appropriate solution. The problem occurs due to bottom: 1px
in ow-notifications
class. From what I can see, it is there to align the notification bell with the text, see below.
I think we can get the same effect with padding: 1px 20px 0px 1px
and removing bottom: -1px
in ow-notifications
. With this, we will not need to add another property in the media query. The class will become something like this.
.ow-notifications {
float: right;
display: block;
padding: 1px 20px 0px 20px;
color: #fff;
line-height: 40px;
border: 0 none !important;
position: relative;
right: -5px;
margin-left: 10px;
cursor: pointer;
}
What do think about this?
Thanks for reviewing @pandafy. I think whole setup is made to align Your solution also solves the issue but it creates misalignment between I have two solutions which don't need any addition of extra properties.
What do you think about this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your keen observation @niteshsinha17
- remove
bottom:-1px
fromow-notifications
, removetop:-1px
frombell-icon
. It will produce the same effect which is in your solution. To solve the misalignment of bell and nav icons, we can removetop:-1px
fromnav-icon
.
I will not prefer modifying CSS for nav-icon
since it is not added in openwisp-notifications, it is a feature of openwisp-utils and it will be better to add any such modifications over there only. Honestly, I don't like this solution.
2. In your solution we can do one thing to solve the alignment issue. Make
top:41px
inow-notifications
in the media of max width:1024. So the classes will look like this.
This solution sounds more appropriate to me, but it should be top: 42px
instead of top: 43px
. You can go ahead with this one.
Thanks @pandafy I also like the 2nd solution more. |
6e33451
to
feb5f77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @niteshsinha17 !
Merging deferred to @nemesisdesign 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @niteshsinha17 and @pandafy 👏 👍
The issue was related to div having class ".ow-notifications". It was taking css property bottom=-1 and it was positioned absolutely that's why it was taking complete height. So it made bottom = auto.
Fixes #130