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

Too much padding in title #8

Open
foderking opened this issue Nov 15, 2021 · 3 comments
Open

Too much padding in title #8

foderking opened this issue Nov 15, 2021 · 3 comments

Comments

@foderking
Copy link

This plugin is great!. but I noticed there's a lot of padding at the top of the text in the title part of the file.
Is there a way to reduce it?

@foderking
Copy link
Author

For reference
Capture

@yarin-zhang
Copy link

You can add the following code snippet in .obsidian\snippets . It could solve article header shrinkage following title.

/* 解决文章页眉跟随标题收缩 */
.workspace-leaf-content[data-type=markdown] .view-header-title-container {
  width: 700px;
  margin-top: auto;
  height: auto;
  padding: 0;
  text-align: center;
}

@yarin-zhang
Copy link

You can add the following code snippet in .obsidian\snippets . It could solve article header shrinkage following title.

/* 解决文章页眉跟随标题收缩 */
.workspace-leaf-content[data-type=markdown] .view-header-title-container {
  width: 700px;
  margin-top: auto;
  height: auto;
  padding: 0;
  text-align: center;
}

Don't forget to enable this code in Obsidian's settings.

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

No branches or pull requests

2 participants