abricotine icon indicating copy to clipboard operation
abricotine copied to clipboard

Change max width of content

Open ghost opened this issue 8 years ago • 4 comments

I tried to change the maximal width of the content. The width of the container containing all the content is somehow limited. I could not find the css rule limiting the content width (to override it in my theme). How is the width limited?

Addendum: I think the idea of limiting the content width is good to improve readability, but as long as #23 is not solved, I'd prefer to use all available space.

ghost avatar Apr 01 '17 20:04 ghost

I finally found the class that contains the style for the content-width. Adding the following code to the theme in use allows changing the max-width of the content.

.CodeMirror-sizer {
	max-width: yourvalue;
	width: yourvalue;
}

Also, the default value is 900px and I think it should rather be a value in em, e.g. 58.5em, to compensate different font sizes in different themes.

ghost avatar Apr 04 '17 15:04 ghost

I realize this is a very old answer. But there are still no settings in the editor. Maybe someone else has come across this situation. I put this block in theme.less, but there is no result. This no longer works, or I misunderstood - where do I need to enter the block?

CrazyAlexNT avatar May 12 '23 12:05 CrazyAlexNT

/tmp/Abricotine/themes/default.css - works! :-)

CrazyAlexNT avatar May 12 '23 18:05 CrazyAlexNT

/tmp/Abricotine/themes/default.css - works! :-)

Here is the correct way to do : https://github.com/brrd/abricotine/blob/master/docs/themes.md Then refresh theme from the Development menu (or CTRL+F5).

brrd avatar May 13 '23 12:05 brrd