-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixed styling issues on logs page and made it more responsive #491
Conversation
Current coverage is
|
Re "logs menu": how about changing this name to something more descriptive. I.e., users already see that this is a "menu" so this information is not needed. How about "logs source"? |
On which browser did you check? I've checked on 3 different browsers (IE, Chrome, FF) and on chrome in mobile mode and it looks good. There's no wrapping. As soon as it wants to wrap, view changes to menu mode.
Sure. I've just used first name that came to my mind. "Logs source" sound better. |
Ok I know where the problem is. Pod and container names may be very long and width of container is extended. I need to make sure that it changes to 'menu style' as soon as width extends some limit. |
I've dealt with it differently. PTAL |
@maciaszczykm Can you take this? |
Yes, I will do it soon. |
My only concern is styling :)
|
PTAL |
Reviewed 2 of 4 files at r1, 1 of 2 files at r3, 1 of 1 files at r4. Comments from the review on Reviewable.io |
Fixed styling issues on logs page and made it more responsive
Thanks for doing this :) |
Re |
I couldn't find other way to overload css that is set by the code. We would need our own code that overloads already overloaded css :) This seemed like too much to me, that's why I've decided to use |
This sounds very nice then. Say why we need important in this very place and enable the lint rule then :) |
Unfortunately this feature for We'd have to migrate to |
What problem does the |
Remove |
Now I can reproduce this. I see that this is the menu bar that overrides the position: https://github.com/angular/material/blame/b58343c20ac4bd3418629c29abddfe3ac3840eb5/src/components/menuBar/js/menuBarController.js I also see that single menus dont nee menu bars. How about removing the menu bar directive? https://material.angularjs.org/latest/demo/menu |
That would require making 2 separate menus right next to each other. I'm not sure if they would fit in the available space for small devices. |
Hmm... I see and dont like this :) We have an issue logged, so let's move forward and see that maybe material design fixes this. |
Fixes #467
I've changed logs toolbar on smaller screens to menu bar in order to fit it in available space.
There is 1 major issue with
md-menu-bar
that I've had to solve using!important
property in css.They've solved this issue: angular/material#6049 by changing style of parent
md-toolbar
toposition: relative
in here: https://github.com/angular/material/blob/b58343c20ac4bd3418629c29abddfe3ac3840eb5/src/components/menuBar/js/menuBarController.js#L90This is changed by code so pure css is not enough to handle this better and in our case we need toolbar to have
position: fixed
that's why I've added!important
.Current view:

@bryk what do you think?
Btw. I'm out of office tomorrow and on monday so any comments I'll resolve on tuesday.