Skip to content

Fit text horizontally #182

Description

@bszente

The notes on large (FullHD) screens are auto-wrapped at 47em leaving a large portion of empty white screen on right side. This is caused by the following line in notes.css:

max-width: 47em;

Please remove this static width limitation and enable fit-to-width behavior.

Activity

  1. elpraga commented on Mar 27, 2018

    @elpraga

    Could this be related to #177 ?

  2. bszente commented on Mar 28, 2018

    @bszente
    Author

    I don't know if this is related to your issue. Can you please test, if removing this line from CSS fixes the rendering on Android?

  3. elpraga commented on Mar 28, 2018

    @elpraga

    I just tried that. It didn't fix my problem. Thanks for your help!

  4. jancborchardt commented on Jun 4, 2018

    @jancborchardt
    Member

    Right, on big screens it indeed looks a bit strange as it’s all left-aligned.

    The reason we limit the width though is for legibility, see https://en.wikipedia.org/wiki/Line_length

    So we should add some CSS with a media query for big screen widths to properly center the content:

    #app-content-container {
        text-align: center;
    }
    
    .CodeMirror {
        display: inline-block;
        text-align: center;
        margin-right: 125px; /* half of the app-navigation width, to offset a bit to the left so it’s centered related to viewport */
    }
    
  5. changed the title [-]Fit text horizontally: please remove the "max-width: 47em" from CSS[/-] [+]Fit text horizontally[/+] on Jun 4, 2018
  6. self-assigned this
    on Jun 4, 2018
  7. added this to the milestone on Jun 4, 2018
  8. added
    designRelated to the design or user experience
    on Nov 18, 2018
  9. removed this from the milestone on Dec 21, 2018
  10. added this to the 3.0.0 milestone on May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

designRelated to the design or user experienceenhancementNew feature or requestgood first issueShould be easy to implement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions