Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make style of loading page similar to other pages #423

Merged
merged 1 commit into from
Jun 22, 2016

Conversation

astorije
Copy link
Member

  • Move markup around to make the loading page a window of its own instead of a sub-window of #chat
  • Remove inline styling in loading page
  • Use same styling than other non-messages windows for title and text
  • Add a z-index to the loading page to hide the message input
  • Vertically align the # page title with all other titles
  • Make sure all h1.titles are bottom-margined consistently and remove negative margin on the Settings page title to align with the Connect page title (Reverting/Improving this should be done at the h2 level instead)

screen shot 2016-06-21 at 02 02 46

I can't admit or deny that the style of this is better or worse than the previous version. To me they are equivalent. However, this is now consistent with the # page, and all other non-chat pages.

@astorije astorije added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Jun 21, 2016
@astorije astorije added this to the 2.0.0 milestone Jun 21, 2016
@williamboman
Copy link
Member

williamboman commented Jun 21, 2016

Nice! This change might seem minor but it makes the critical rendering path more visually pleasing (mainly due to no more h2 border).

</div>
</div>
</div>
</div>
<div id="chat"></div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping it in #chat meant it will be overridden once the chat has loaded, thus not keeping the loader in DOM. Any reason you moved it out?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. I actually started by leaving it in there, but I was forced to cancel everything that the #chat was setting, and it was a bit messy to hide the input field.
Making it its own window made more sense and cleaned up things a bit.

I hear you though, so I am now detaching the loading page in the init event handler. Doing it earlier (when the # page appears) means I have to duplicate for public mode, so it's good like this I believe.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess that makes sense, fine by me.

@xPaw
Copy link
Member

xPaw commented Jun 21, 2016

👍 except for the inline comment.

@astorije astorije force-pushed the astorije/loading-page-styling branch from 3cd4388 to 01947a4 Compare June 21, 2016 13:48
@@ -178,6 +178,7 @@ $(function() {
}

$("body").removeClass("signed-out");
$("#loading").detach();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been .remove, we don't be reusing the element at a later time.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! Should I use .remove() on $("#sign-in") next line as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in e5dddba.

- Move markup around to make the loading page a window of its own
  instead of a sub-window of `#chat`
- Remove inline styling in loading page
- Use same styling than other non-messages windows for title and text
- Add a `z-index` to the loading page to hide the message input
- Vertically align the # page title with all other titles
- Make sure all `h1.title`s are bottom-margined consistently and remove
  negative margin on the Settings page title to align with the Connect
  page title (Reverting/Improving this should be done at the `h2` level
  instead)
@astorije astorije force-pushed the astorije/loading-page-styling branch from 01947a4 to e5dddba Compare June 21, 2016 22:01
@astorije
Copy link
Member Author

All of @xPaw's comments have been addressed :-)

@AlMcKinlay
Copy link
Member

Just tried it out, looks good. And the code seems fine :-) I agree with keeping it outside of #chat, because it really shouldn't be in there anyway.

👍 and merging.

@AlMcKinlay AlMcKinlay merged commit 37f9fe4 into master Jun 22, 2016
@AlMcKinlay AlMcKinlay deleted the astorije/loading-page-styling branch June 22, 2016 07:26
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
…-styling

Make style of loading page similar to other pages
@AlMcKinlay AlMcKinlay removed their assignment Mar 12, 2018
@xPaw xPaw removed their assignment Mar 12, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants