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

fix: content displayed on bottom of mobile viewport when TOC is active #1489

Merged
merged 59 commits into from
May 18, 2019

Conversation

shakcho
Copy link
Contributor

@shakcho shakcho commented May 18, 2019

Motivation

Resolved the CSS issue, by adding margin-bottom: 0px for onNavPage for mobile screen.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Go to http://localhost:3000/docs/en/installation and click on tocToggler as highlighted on the image.
Screenshot 2019-05-18 at 12 50 26 PM
and it should show the UI as shown in the image below
Screenshot 2019-05-18 at 12 51 40 PM

Related PRs

I'm not aware of any.

yangshun and others added 30 commits May 17, 2019 23:58
* misc(v2): clean up work

* misc(v2): rename components
* feat(v2): implement component overriding

* siteDir theme overriding should work for > 1 level directory

* fallback for essential component like Loading

* rename default -> classic
* feat(v2): easier plugin theme components override

* add context

* refactor again

* rename eject -> swizzle

* nits
* feat(v2): Algolia search plugin

* patch PR facebook#1440 (facebook#1441)

* alternative implementation

* typo

* refactor noop

* rename SearchAlgolia -> SearchBar

* changes.md
…k#1442)

* refactor(v2): move headerLinks -> themeConfig & rm dead code

* rm -rf dead code
* chore(v2): add flow setup

* nits

* fix

* add flow-typed

* ignore compiled library

* fix error

* fix typing

* fix module name mapper

* setup for @docusaurus/core

* dont try remove type without @flow

* fix can't find @docusaurus/utils

* fix test

* remove obscure relative paths

* more refactoring

* add typing for server/load/theme.js

* no need to ship .flow source
* feat(v2): meta description

* add description for blog as well

* fix non-descriptive text link

* remove font awesome

* switch front-matter -> gray-matter
* refactor(v2): blog data revamp

* fix(v2): fix incorrect blog total count

* misc: remove console.log

* feat(v2): export frontMatter as an object within MDX file (facebook#1451)

* refactor. Don't confuse metadata & frontmatter

* export frontMatter in content itself

* nits

* nits name

* dont truncate first four lines in blog
* feat(v2): blog tags

* feat(v2): blog tags
* fix: right TOC should not strip special chars

* nits
* fix(v2): handle non existent blog, docs, pages

* nits
* feat(v2): list blog tags on posts

* fix date handling on blog header

* fix console log error due to non unique key
hong4rc and others added 20 commits May 17, 2019 23:58
…ook#1468)

* Make it clear where the `docs` folder is

It was not clear, to the beginner user—who this tutorial is for—where the `docs` folder was . The only reason I know this is because I'm a beginner user and I tried for too many minutes to find the `docs` folder inside the `website` folder. I had this assumption because the previous example is offered under the assumption that you're in the `website` folder.

Feel free to change the wording, I just want to make it clear where you should be looking, if you're new.

* Update tutorial-create-pages.md
In this tutorial we assume that the user may or may not have used Node.js. It would follow then, based on how long it takes the "Linking dependencies" step to complete—243.61s for me—that we give them a hint that it might take a minute.
* doc: change tutorial git to suggest HTTPS

Since we're instructing the user to create a new repository, it might be a safe bet to assume that they don't have their SSH keys set up. HTTPS might be a better option in this context.

* docs: keep ssh add https

@hongarc said, "How about keep `SSH` and add `HTTPS`." This is one way to do that.

* Update tutorial-setup.md
In facebook#1468 we clarify where the `docs` folder is. 
Here, we make it clear where `sidebars.json` is.
* fix: missing cli commands

* centralize
* feat(v2): move navbar config into themeConfig

* misc: fix tests

* fix: support external url for logo
* WiP: CLI docs

* Tweak word choices for CLI docs

- Use the word swizzle directly
- Follow variable convention for shell

* Resolve docs discussion

* Update cli.md
* docs: fix typo for `docs` folder

* docs: request change for facebook#1484

* Update api-doc-markdown.md
* docs: showcase user Idb

* docs: showcase user Netconsd

* docs: showcase user Redex
@shakcho shakcho requested a review from endiliey as a code owner May 18, 2019 07:25
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label May 18, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit c7449a5

https://deploy-preview-1489--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit c7449a5

https://deploy-preview-1489--docusaurus-preview.netlify.com

@shakcho shakcho changed the title Scroll fix mobile fix: Glitchy scroll on mobile May 18, 2019
@endiliey
Copy link
Contributor

You might want to rebase your forked repo to this repo's master so that we don't have 59 commits here in this PR due to it being out of sync.

Well, not really the concern for us because we squash it to 1 commit.
Just FYI

@endiliey endiliey changed the title fix: Glitchy scroll on mobile fix: content displayed on bottom of mobile viewport when TOC is active May 18, 2019
@endiliey endiliey merged commit c052b6a into facebook:master May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants