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

文件名与图标无法对齐 #60

Closed
pjpjp219 opened this issue Feb 8, 2022 · 9 comments
Closed

文件名与图标无法对齐 #60

pjpjp219 opened this issue Feb 8, 2022 · 9 comments
Labels

Comments

@pjpjp219
Copy link

pjpjp219 commented Feb 8, 2022

描述问题

文件名与图标无法对齐

如何复现问题

image

期望结果

我自己加了个属性,就对齐了
image

截图

在上面

系统 (建议使用最新Typora版本)

  • OS Windows
  • Theme Drake-Vue
  • Typora Version 最后一个测试版本
@liangjingkanji
Copy link
Owner

你这样调整字体大小后还是会不对齐吧?

@pjpjp219
Copy link
Author

pjpjp219 commented Feb 8, 2022

你这样调整字体大小后还是会不对齐吧?

原来是我修改了字体大小的原因,那有没有什么办法可以解决这个问题呢

@liangjingkanji
Copy link
Owner

那我把这个地方字体锁死14px如何(官方主题即如此).
或者你可以给官方建议调整这块的布局

@pjpjp219
Copy link
Author

pjpjp219 commented Feb 8, 2022

我觉得可行!就是调整编辑器内的字体不应该影响到菜单栏?

@liangjingkanji
Copy link
Owner

之前是觉得大家喜欢字体差距很大, 有人用12px有人用16px

@pjpjp219
Copy link
Author

pjpjp219 commented Feb 8, 2022

之前是觉得大家喜欢字体差距很大, 有人用12px有人用16px

我觉得可以把这两属性抽出来,菜单栏可以加个备注,修改大小可能导致菜单无法对齐,编辑器的字体大小各有所爱就随便我们调整了

@Black-Jay
Copy link

这样比较舒服些

.file-node-content {
  display: flex;
  align-items: center;
}
.file-node-open-state {
  margin-right: 20px;
}
.file-node-icon{
  margin-right: 10px;
}

@pjpjp219
Copy link
Author

这样比较舒服些

.file-node-content {
  display: flex;
  align-items: center;
}
.file-node-open-state {
  margin-right: 20px;
}
.file-node-icon{
  margin-right: 10px;
}

谢谢!

@liangjingkanji
Copy link
Owner

这样比较舒服些

.file-node-content {
  display: flex;
  align-items: center;
}
.file-node-open-state {
  margin-right: 20px;
}
.file-node-icon{
  margin-right: 10px;
}

怎么不来个PR

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

No branches or pull requests

3 participants