Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to overcome max-width limit of #write div #1

Closed
mmatti opened this issue Aug 15, 2015 · 7 comments
Closed

Unable to overcome max-width limit of #write div #1

mmatti opened this issue Aug 15, 2015 · 7 comments

Comments

@mmatti
Copy link

mmatti commented Aug 15, 2015

Typora locks #write to 854px, and applying a custom stylesheet (even with the "!important" cheat) can't override it. Trying to get line widths to flow and wrap at the window's edge, instead of a fixed position.

None of the supplied themes support full width line reflow, which is fine, but the inability to override with a custom theme is frustrating.

@Fastidious
Copy link

I second this. Not really want it to wrap at the exact edge (50 pixels or so from it is fine, you know, like a regular word processor [but better, or course, it is Markdown).

@abnerlee abnerlee added the bug label Aug 16, 2015
@abnerlee
Copy link
Contributor

Hi, I've tried with typora, but I found currently, the max-width can be override.

For example, in your custom stylesheet:

#write {
    max-width: initial; // this will remove the default max-width
    margin: 0 auto;
    padding: 0 0 0 0; // this will define the pixels between writing area to window's edge
}

Then the writing area will be expanded to the edge

@mmatti
Copy link
Author

mmatti commented Aug 31, 2015

Thank you, thank you, thank you. Got to say, after more than ten years of using CSS, this is the first time I've seen a use for the "initial" value. Relieved that it actually works.

Still maintain that Typora should not have a fixed-width default ...

@abnerlee
Copy link
Contributor

@mmatti, thanks for the advice. I will move max-width from base(default) css file to theme's css file.

@Fastidious
Copy link

@mmatti and @abnerlee totally love this change! I am using a padding of 20px and it just works beautifully. Thank you much, to both of you!

@Fastidious
Copy link

@abnerlee if this (call it "margins?") were to be configurable--that is, exposed on the UI, for all themes--it would be great!

@abnerlee abnerlee added enhancement and removed bug labels Sep 4, 2015
@abnerlee
Copy link
Contributor

default css styles won't include max-width from 0.9.6.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants