blinkfox / typora-vue-theme

This is a typora theme inspired by Vue document style. 一个类似于 Vue 文档风格的 Typora Markdown 编辑器主题。
https://theme.typora.io/theme/Vue/
Apache License 2.0
936 stars 180 forks source link

Index of list item cannot be seen on high definition screen #8

Closed BYJRK closed 5 years ago

BYJRK commented 5 years ago

Hello there. I found that when using Vue theme on Windows high definition screen (e.g. 4K, 200% scale), the index of list items cannot be seen (more specifically, the first digit cannot be seen, that is to say, 12. will only shows 2., while 1. will shows .).

Can anyone here help me fix this problem?

image

blinkfox commented 5 years ago

I have time to reproduce and solve this problem later.

suiyun39 commented 5 years ago

I want solve this issue. but i don't have 4k screen. I will try setting DPI to 200% on my screen. hope can reappear this issue.

suiyun39 commented 5 years ago

Now, I reappear this issue and found the reason. On vue.css: 286

#write ol li {
    padding-left: 0.5rem;
}

But i don't know this code whether has other effect. @blinkfox Can i delete it?

blinkfox commented 5 years ago

@NoDocCat You can delete it and check it out on 4k, 2k or normal screen. If the display is normal, then it is ok.

suiyun39 commented 5 years ago

@blinkfox I try to use text-indent replace padding-left. But, I found some differences

first image is old theme. 100-old 100-new

look secondary list, it's left margin to shrink. Do you think this is acceptable?

suiyun39 commented 5 years ago

Add some images. I sure it work at 200% DPI and 150% DPI

200-new 200-old 150-new 150-old

blinkfox commented 5 years ago

I can accept, the difference is small.