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

Padding before title #1625

Merged
merged 5 commits into from
Jul 5, 2021
Merged

Conversation

MorningLit
Copy link
Contributor

@MorningLit MorningLit commented Jul 3, 2021

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • Feature addition or enhancement
  • Code maintenance
  • Others, please explain:

Fixes #1614

Overview of changes:
Hi dev team, I am sending this PR here, as told by Prof Damith, because I am unsure if my fix is the correct approach. Do let me know what did I do wrong and where can I improve it!

Added a padding-left of 0.3125 rem which is the same as the element's padding-top and padding-bottom.
image

Anything you'd like to highlight / discuss:

Testing instructions:

Proposed commit message: (wrap lines at 72 characters)
Add left padding to page nav title


Checklist: ☑️

  • Updated the documentation for feature additions and enhancements
  • Added tests for bug fixes or features
  • Linked all related issues
  • No blatantly unrelated changes
  • Pinged someone for a review!

Copy link
Contributor

@jonahtanjz jonahtanjz left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @MorningLit 👍

A few suggestions:

Wonder if it is better to add it here instead so that it will be applied to current markbind sites as well. Adding it inside core/template will only affect newly init sites.

0.3125rem still seems a little tight, maybe can try out 0.5rem?

You may also want to run npm run lintfix and then npm run test first before pushing to lint and ensure all tests are passing.

@MorningLit
Copy link
Contributor Author

MorningLit commented Jul 4, 2021

Appreciate the feedback @jonahtanjz !
I have followed your feedback and made changes accordingly, do let me know if there is anything else I need to improve on!
image

The new updated padding

Copy link
Contributor

@jonahtanjz jonahtanjz left a comment

Choose a reason for hiding this comment

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

Thanks for updating 👍

Perhaps your commit message can be a little more specific? Maybe something like Add left padding to page nav title?

packages/core-web/src/styles/page-nav.css Show resolved Hide resolved
@MorningLit
Copy link
Contributor Author

Updated my PR based on your comments 👍
Anything else this PR needs to improve on?

Copy link
Contributor

@jonahtanjz jonahtanjz left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks again for working on this @MorningLit!

@jonahtanjz jonahtanjz added this to the v3.0.5 milestone Jul 5, 2021
@jonahtanjz jonahtanjz merged commit 1e0c159 into MarkBind:master Jul 5, 2021
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.

Page nav title: add padding before the title
2 participants