jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.77k stars 299 forks source link

Code preview problem2 - long code line #107

Closed xbotao closed 7 years ago

xbotao commented 7 years ago

working environment

code line is long

long code longcode2

If the code is long in one line, the problem will be appeared after close and open the posts.

After close and open again

when Editing the posts afteropenedit

All posts line is short

If all the post line is short, the posts list page will like the follow.

short

pirtleshell commented 7 years ago

Let me know if that didn't fix it. I was able to reproduce your problem and it went away when I gave the editor a max-width of 100%.

xbotao commented 7 years ago

It's OK when the code line is long by your fixed. Thanks!

Another problem, if the all the posts line is short. It could be fixed by add the width: 100%; to posts_content, please add this @PirtleShell .

.posts_content {
  overflow: auto;
  padding: 30px;
  width: 100%;
}

short