mb21 / mb21/panwriter

Customize editor theme/layout

Open
#91 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
66
PR merge metrics
No merged PRs in 30d

Description

I just found panwriter and I am in love ❤️

I would love it even more if I could control a bit more of the editor. When I go full screen I would like to have the text be right aligned and go full width. Although I know this is likely not going to be a universally wanted item.

current
image

better
image

best
image

I can manually get what I want by modifying css

.CodeMirror-lines {
    margin: 0 auto;
    max-width: 40em;
    padding: 60px 50px 50px;
}

to

.CodeMirror-lines {
    /* margin: 0 auto; */    /* makes it better */
    /* max-width: 40em; best*/ /* makes it best */
    padding: 60px 50px 50px;
}

but having this available as a setting would be great!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the editor styles for .CodeMirror-lines and review how the current CSS controls margin, max-width, and padding. Define a setting that exposes the requested full-width and alignment choices, then verify the editor reflects those choices in full-screen mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, electron, react, typescript
Domain
desktop-dev, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.