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

优化富文本显示排版 #568

Merged
merged 3 commits into from
Oct 22, 2024
Merged

优化富文本显示排版 #568

merged 3 commits into from
Oct 22, 2024

Conversation

RinPV2
Copy link
Contributor

@RinPV2 RinPV2 commented Oct 17, 2024

摘要

不涉及任何逻辑,只修改了排版
1.把所有字都向下对齐
2.固定行距保证无论这行有没有拼音都会显示在同样的高度
)%U4EXF~1(A6JJ(YJN5SF

对比原本效果

before

  • 大:
    图片
  • 中:
    图片
  • 小:
    图片

after

  • 大:
    图片
  • 中:
    图片
  • 小:
    图片

对于旧代码

只修改了必须求改的部分,并做了解释。

P.S.

大字体那里确实没办法改了,所以选择了保持原状

1.把所有字都向下对齐
2.固定行距保证无论这行有没有拼音都会显示在同样的高度
@MakinoharaShoko
Copy link
Member

感谢你的 PR,这对我们非常有帮助,我们会在近期审查。

@RinPV2
Copy link
Contributor Author

RinPV2 commented Oct 21, 2024

😳发现textbox.module.scss的修改并没用,只改IMSSTextbox.tsx就行

这里的行是逻辑的行,实际上是可能换行的。另外,也稍微修改了字体大小。
@MakinoharaShoko MakinoharaShoko merged commit 51cb753 into OpenWebGAL:dev Oct 22, 2024
1 check passed
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.

2 participants