writeas-cli icon indicating copy to clipboard operation
writeas-cli copied to clipboard

Default mono formatting misaligns against other font types.

Open gnp-x opened this issue 1 month ago • 0 comments

I noticed when posting with the default mono font, it doesn't follow the alignment of posts that you see written through the web interface, or the other font options of the wf cli. Using mono in the web interface aligns correctly, however. The only offender is when using the default mono option in the cli.

It kinda looks like this...

     all-other-posts

cli-mono-post

     all-other-posts

My hacky fix was to edit the write.css file with the following to the end.

body#collection article.h-entry.mono {
  max-width: 40em !important;
  margin: 0 auto;
}

/* Post and subpage views use 40rem */
body#post article.h-entry.mono,
body#subpage article.h-entry.mono {
  max-width: 40rem !important;
  margin: 0 auto;
}

This forces the cli-written mono post to align just like all the posts.

But this inconsistency would be better handled in the pre-compiled code, which is why I am putting this issue here.

gnp-x avatar Nov 28 '25 17:11 gnp-x