Repository navigation
Add top/bottom bars - #9274
Add top/bottom bars#9274
Conversation
|
This looks very promising! ✨ |
|
I'm working on a package that needs to be fullwidth. This will be 🆒 . |
There was a problem hiding this comment.
They're not panels, they're (panel) containers.
There was a problem hiding this comment.
Yeah, wasn't too sure about the bar name. Any good alternative?
top-fulltop-full-widthtop-outertop-edgetop-most
There was a problem hiding this comment.
@thomasjo commented on 24 okt. 2015 21:11 CEST:
They're not panels, they're (panel) containers.
I'm sorry, I meant when the content are panels.
I like the top-most and bottom-most, but will leave that up to you guys. Just wasn't sure about bar when the containers aren't limited to bars only.
There was a problem hiding this comment.
Naming things is probably the single most difficult thing in software development, hehe. I like top-most and bottom-most too, but something about those names don't "jive".
What about something simple like header and footer?
There was a problem hiding this comment.
header and footer are my favorites, especially since the terms are extremely common in the web world and we're using web tech in atom :)
There was a problem hiding this comment.
header and footer sound 👍 to me too
This lets the height be changed by the parent flexbox added in atom/atom#9274
|
@simurai Looks good to merge when you're satisfied. I don't think moving the status-bar when the panels are there is actually crucial because it's generally full of metadata for the current editor and it seems a little strange to separate it from the bottom of the editor by an arbitrary amount. |
|
@thedaniel I tested a few packages and made some tweaks so they don't break. So I think it should be good now. Well, I still found one that inlines the |
|
I think it's maybe OK. What happens, does the youtube pane cover up the header/footer? We could always give package authors like @alexandruionascu feedback on a better way to calculate height after this gets merged. |
We can even open PRs. When we merge this, just point me at repos and I can try to fix a few 😉 |
|
Sounds good. I started a "Packages that break or have issues" list in the description. Only packages that add an |
|
@simurai Great, thanks! |
|
I'm sorry for the complete offtopic, but what plugin is the one with the GitHub icon (among others) that you're using, @simurai ? |
|
@alexandernst It's https://atom.io/packages/tool-bar. Plus https://atom.io/packages/flex-tool-bar so you can easily map any command to a button. |
|
@simurai Thank you so much! This plugin should be part of core imho, it completely rocks! \o/ |
|
Code-wise this looks good to me: nice work here, @simurai! ✨ I know we haven't done so for other kinds of panels, but what would you think about testing the actual dimensions/coordinates in Also, I gave this a quick test-drive and I have jotted down a couple of concerns (which maybe are not related to this PR, but to the respective packages instead?):
I noticed you opened a PR on tree-view which is maybe addressing 2), but atom/tree-view#627 (comment) seems to state it's not needed anymore. Thoughts? |
|
@as-cii Thanks for testing. Point 2 should be fixed with the PRs above. Point 1: Yeah, it looks a bit odd if you just add text with One light. I guess it depends on the theme and the package that would occupy the I think we can leave it up to the package/theme to either add a bottom border or a different background color to have some kind of separation.
🍐ing would be great. I'm flying home tonight, so I'll ping you about it. |
|
Wow, very nice! |
|
@rm-code This hasn't been merged yet |
|
@alexandernst I know 😁 Looking forward to it though. Especially if it enables #10208 to be merged as well. |
|
Looks good! ✨
|
Needed for packages since `100%` height doesn't play nice with flexbox
86d8bad to
127e4db
Compare
|
Travis builds are legit. Merging. |
|
@benogle Don't forget to merge atom/tree-view#627 please |
|
Thanks for the heads up |
|
This broke some Nuclide stuff too. Will this go out with 1.5.0 or 1.6.0? EDIT: I love the change though! |
|
Sorry about that. It'll be out in 1.6 |
|
@zertosh Sorry. Yeah, noticed that scrolling of Nuclide's file-tree will break. Any idea where that Or if that atom-panel.left > div {
height: initial !important;
display: flex;
} |
|
@simurai: No worries, @ssorallen is the one looking into. I think he has a solution to support both the new and old behavior- something we have to do since we can't upgrade everyone at fb to 1.6.0 at the same time. |
|
@simurai Thanks for checking out the Nuclide DOM. I will try out your fix. |
Good point. Most packages currently use If you wanna keep the current markup in Nuclide, <atom-panel class="left tool-panel panel-left">
<div style="height: inherit; display: flex;"> |
Summary: public Atom v1.6.0 will ship with [updated panel styling][1] that prevents the side bar from scrolling in its current form. Inherit height and switch to flex layout in order to inherit the `height:100%` from v1.5 and fill the flex container in v1.6. The `inherit` will inherit `height:auto` in v1.6, ensuring it instead uses flex. [1] atom/atom#9274 Reviewed By: zertosh Differential Revision: D2925685 fb-gh-sync-id: 231dc66898d7e8170df82aa35c8ca93b2dfdb719 shipit-source-id: 231dc66898d7e8170df82aa35c8ca93b2dfdb719






This PR adds a top and bottom bar to
atom-workspace.It allows packages to add
<atom-panel>s that span across the whole width and not just above/under the editor.The
status-barortabscould go on top and under the tree-view.Todo
Todo after merging
Packages that break or have issues
chat-messages) -> PRCloses #8939