Just moved to Joplin from Obsidian, it's just so much better here for my use case. Decided to fix some issues I saw and make it comfier.

  • The difference between the markdown editing and viewing modes was jarring, so I made it as 1:1 as possible in container sizing and content spacing.
  • Added margins to center text. Just a personal preference from my time in Obsidian.

userchrome.css :

/*
** Container clean-up
*/
.CodeMirror-vscrollbar,
.CodeMirror-hscrollbar { /* remove scrollbar replacers */
	overflow: hidden !important;
}

.CodeMirror-scroll {
	padding-left: 10px;
	padding-right: 10px;
	margin-left: 0 !important;
	margin-right: 0 !important; /* remove scrollbar band-aid */
	overflow: scroll !important;
	.CodeMirror-sizer {
		padding-left: 10px !important;
		padding-right: 10px !important;
		border-right-width: 0 !important; /* remove scrollbar band-aid */
		& > * > .CodeMirror-lines {
			padding-bottom: 3in !important;
		}
	}
}

.CodeMirror-line { /* remove line paddings */
	padding: 0 !important;
	& > span {
		padding-right: 0 !important;
	}
}

/*
** Presentation parity
*/
.CodeMirror-sizer {
	width: calc(100% - 1in);
	margin-left: auto !important;
	margin-right: auto !important;
}

.cm-jn-inline-code { /* inline code size */
	font-size: 0.9em;
	letter-spacing: calc(0.2em / 3);
}

userstyle.css :

#joplin-container-content {
	overflow: scroll !important;
}

#rendered-md {
	width: calc(100% - 1in);
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 3in;
}

1 Like