Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Document width discussion #239

Open
Open

Description

@twiss

After we have #235, we could set a width or a max-width on the editor.

width max-width neither
Pros WYSIWYG out of your printer [desktop] WYSIWYG out of your printer
Cons [mobile] Crammed, or you have to scroll [desktop] Leads to the impression that the document has constant width [desktop] Very wide documents are ugly
Responsive layout is cool and html is good at it [desktop] hard to layout, e.g., a right-floating image

Activity

  1. ferndot commented on Dec 3, 2014

    @ferndot
    Member

    I think that the width should only apply to document formats that are intended to be paginated, such as ODT and DOCX. Other formats, such as HTML and plain text, might not be improved by this change.

    Your width suggestion appears to be the best approach for desktop devices. Mobile is more difficult. How do popular mobile word processors like Documents to Go and Microsoft Office implement this?

    [UPDATE] Apparently, Documents to Go does not have a set page width or pagination.

  2. twiss commented on Dec 3, 2014

    @twiss
    CollaboratorAuthor

    Google Docs, Microsoft Office Mobile, Zoho Docs and Quip all also don't have a width, except Zoho Docs in read mode (i.e. before you press "edit").

  3. ferndot commented on Dec 3, 2014

    @ferndot
    Member

    So, max-width might be the best approach.

  4. twiss commented on Dec 3, 2014

    @twiss
    CollaboratorAuthor

    Notes about #241:

    • You can't click beside the editor to focus (though that matters less in non-zen mode after Toolbar on the desktop #201).
    • We should probably allow the user to set page settings (width and margins) at some point.
      • And/or default to something sane (locale- or computer-settings-related) for new documents.
    • Somewhat relatedly, maybe we should put the max-width in the generated html file.
  5. ferndot commented on Dec 3, 2014

    @ferndot
    Member

    Should we default to a max-width for HTML?

  6. twiss commented on Dec 3, 2014

    @twiss
    CollaboratorAuthor

    Well, I'm not sure, it's just that any document at 1920px width looks awful. Also, often when you're writing a document, you want it to look exactly like this, and don't care about responsive design aficionados.

    Why do prefer no max-width for html?

  7. ferndot commented on Dec 4, 2014

    @ferndot
    Member

    I guess it depends on our objective. If we want the HTML format to primarily be a "document" format, then the max-width is a good choice. For use cases like #214, the max-width might not be beneficial.

    Somewhat relatedly, maybe we should put the max-width in the generated html file.

    That might solve our dilemma!

  8. added a commit that references this issue on Dec 12, 2014
  9. ferndot commented on Dec 14, 2014

    @ferndot
    Member

    @twiss: does this sound good?

    For new html files:

    • Automatically add max-width
    • Provide an interface to change the width

    For opened html files:

    • Use max-width defined in the files
      • If not defined, do not apply a width

    Additionally, we may want to provide two different html "formats": document (max-width, etc...) and developer (vanilla HTML). And, we might want to put these into templates so that we don't have to include them in the JS.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions