-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use flexbox for header and rearrange some elements #2924
Conversation
@ChristophWurst, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jancborchardt, @Henni and @nickvergessen to be potential reviewers. |
@@ -125,7 +124,6 @@ body { | |||
.searchbox input[type="search"]:valid { | |||
color: #fff; | |||
width: 155px; | |||
max-width: 50%; |
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.
@skjnldsv if this line is active, the input is narrower on the right, which means some space between the input and the settings menu shows ups. Any idea what might cause that? I've tried different fixes but none solved it so far. The max-width is needed for narrow window sizes like on mobile to prevent the input take up too much space.
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.
Will look into it asap
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.
Almost have it. Will push it tonight!
911db1e
to
237de91
Compare
Did you try if this breaks the notification UI? |
Not yet, thanks for the hint |
@ChristophWurst Pushed what I got so far. |
90c02dd
to
a846327
Compare
Awesome, thank you @skjnldsv! I added another small fix. Now it seems to work nicely, except for extremely narrow window sizes. There, the fixed search input width is too big. |
@nickvergessen apparently works with notifications too: |
@eppfel @jancborchardt @juliushaertl @skjnldsv not sure how much of an issue that is, but would be great if we can fix this too. Suggestions are very welcome :-) |
Previously the notification icon was right of the search, but I guess it's okay |
We can change that of course. https://github.com/nextcloud/notifications/blob/643b3d8e26a821a2b5257064f9b9d8804e8e044d/js/app.js#L93-L94 modifies the relevant elements. |
Current coverage is 53.92% (diff: 0.00%)@@ master #2924 diff @@
==========================================
Files 1302 1302
Lines 80097 80097
Methods 7905 7905
Messages 0 0
Branches 1245 1245
==========================================
Hits 43189 43189
Misses 36908 36908
Partials 0 0
|
</h1> | ||
</div> | ||
</a> | ||
<div class="header-left"> |
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.
You use an ID for header-right, but a class here. Better would be an ID here too. :)
@@ -414,6 +412,20 @@ | |||
/* do not show display name when profile picture is present */ | |||
|
|||
#header { | |||
#header-left #header-right { |
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.
Comma and line break missing I guess? Because header-right is a sibling of header-left, and not a child.
display: flex; | ||
} | ||
|
||
div.header-left { |
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.
As with the comment below, use an ID. Then also remove the div
part because an ID (or class) is enough to identify. :)
@ChristophWurst @skjnldsv see my detail comments. Except if this is intentional of course, but it doesn’t look like it :) |
83b39b9
to
f25c09e
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.
The search icon is a little too low.
@@ -169,7 +169,6 @@ body { | |||
border: 0; | |||
border-radius: 3px; | |||
margin-top: 9px; |
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.
Search box is too low.
Remove the marginTop
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.
fixed
Very nice work! |
I will take care of fixing Gallery in case this breaks something there too |
Video calls shared by link will be affected too ;) And maybe Collabora Office uses a separate template for the header too? |
then someone will fix it ;-) |
db5f164
to
d1f3fc2
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.
I rebased this, resolved the conflicts, tested it and it works like a charm 👍
@ChristophWurst Could you please check that the rebase went fine (otherwise db5f164 is the old sha sum ;))
❤️ 😗 thanks :-) Will check it ASAP |
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
d1f3fc2
to
ac6d501
Compare
rebased again because it was conflicting with the changes from #3187 New issues:
cc @nextcloud/designers |
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.
I tested this again and it looks fine 👍
It will only need a little adjustment of the notification icon in the notifications app. I will do that. |
Signed-off-by: Morris Jobke <[email protected]>
|
this is just a little cleanup for #207