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

Status bar component added #46

Closed
wants to merge 8 commits into from
Closed

Conversation

grumdrig
Copy link

@grumdrig grumdrig commented Apr 23, 2020

I added a status bar component - here's a motivating screenshot of a win 98 file view:
http://toastytech.com/guis/win98desk.png

The status bar can go anywhere but it makes the most sense added to a window (in your sense of a window), so maybe it should be presented as such in the documentation. I guess I think that would be best so I can change it if you like.

Another judgement call, I've used table and td elements to implement it. You could do it with div's with display style to table and table-cell, but it's a little more tortured to do it that way so I think the way I've done it is best.

@grumdrig
Copy link
Author

(Btw I'm not experienced with github and pull requests and I don't understand what the failed check is all about.)

@jdan
Copy link
Owner

jdan commented Apr 24, 2020

Hey - Thanks for this, I'll take a closer look tomorrow.

Re: build failures, docs/index.html is a generated file (from index.html.ejs), so that build failure is from a test that makes sure the build of index.html.ejs doesn't result in any changes. In your case it will, since running npm run build undoes your changes to index.html. Does that make sense?

Got a confusing setup here, sorry :) Will tidy it up.

@grumdrig
Copy link
Author

grumdrig commented Apr 24, 2020 via email

@jdan
Copy link
Owner

jdan commented Apr 24, 2020

Of course :)

docs/index.html Outdated Show resolved Hide resolved
@jdan jdan mentioned this pull request Apr 27, 2020
@piranna
Copy link

piranna commented Apr 27, 2020

What about using footer instead of a div? It will be anyway at the bottom of the window...

The status bar can go anywhere but it makes the most sense added to a window (in your sense of a window), so maybe it should be presented as such in the documentation. I guess I think that would be best so I can change it if you like.

Maybe you could do the CSS selectors to force they are under a window, like .window > footer...

Co-Authored-By: okoflo <62613693+okoflo@users.noreply.github.com>
@grumdrig
Copy link
Author

What about using footer instead of a div? It will be anyway at the bottom of the window...

Not necessarily a bad idea, but there's no need to require it to be in the bottom of a window, and you'd still face the issue of having to force table layout to get the panels to fill in the space correctly (or in the way I think they should). (Or solve that some other way.)

@grumdrig
Copy link
Author

I think the documentation changes are where they belong now.

I didn't move the example to within the window section, but I will if you'd like me to.

@piranna
Copy link

piranna commented Apr 28, 2020

ou'd still face the issue of having to force table layout to get the panels to fill in the space correctly

What about using flex layout?

@jdan
Copy link
Owner

jdan commented Apr 28, 2020

@grumdrig I'm inclined to agree with @piranna - wanna give this a whirl as a flex-box layout? I did a quick mock-up here: https://codepen.io/jdan/pen/bGVRQBq

I'm happy to add docs for this once it's ready. Thanks for your continued effort here, much appreciated.

@grumdrig
Copy link
Author

I think the footer with flex layout worked out pretty well. I tried to find a balance between aesthetics and authenticity with margin on the footer, and padding on the panels (footer > *), and they go a pixel or two either way. I left the example in the docs as a test case for you to replace or flesh out as you like.

@vercel vercel bot requested a deployment to Preview May 1, 2020 14:36 Abandoned
@vercel
Copy link

vercel bot commented May 1, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/jdan/98css/7tmuntab7
✅ Preview: https://98css-git-fork-grumdrig-status-bar.jdan.now.sh

@jdan
Copy link
Owner

jdan commented May 2, 2020

Hey wanna rebase again? Just so the preview deployment works.

Code looks good, I'll write up some docs.

@jdan
Copy link
Owner

jdan commented Jun 19, 2020

Looks like this closed because I deleted the master branch in favor of main, sorry! Feel free to re-open continuing our discussion

@grumdrig
Copy link
Author

grumdrig commented Jun 24, 2020 via email

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

Successfully merging this pull request may close these issues.

None yet

3 participants