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

Toolbar on the desktop - #201

Merged
ferndot merged 3 commits into
codexa:developfrom
airbornio:desktop
Dec 12, 2014
Merged

ferndot merged 3 commits into
codexa:developfrom
airbornio:desktop

Conversation

@twiss

@twiss twiss commented Nov 5, 2014

Copy link
Copy Markdown
Collaborator

Fixes #195

@twiss

twiss commented Nov 5, 2014

Copy link
Copy Markdown
Collaborator Author

Do you want me to squash the last one into the others?

@ferndot

ferndot commented Nov 5, 2014

Copy link
Copy Markdown
Member

Yes please! I will review this in just a bit.

@twiss

twiss commented Nov 5, 2014

Copy link
Copy Markdown
Collaborator Author

Done.

Comment thread editor/scripts/editorProxy.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 55px bottom padding is needed for the mobile version. It allows the user to scroll the text above the hide-keyboard button. Actually, it would also be good to use margin-top: 55px; for the desktop version to solve the same problem.

Now that I think about it, it is probably best to use margin...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yes. Of course, this is easily fixed by adding the padding-bottom if(mobile). The reason I didn't do that was

  1. The editor then needs to know an awful lot about the UI around it, rather than just being a standalone rectangle. This is especially a problem when adding more editors, e.g. [Investigate] WebODF editor聽#189, [Editor] Implement better code editor聽#192, Plugins!聽#129.
  2. It's slightly unclear where the document actually ends.

Also, theoretically you have the same problem on the desktop (you can't access to top-right corner in zen-mode).

Also, there's the somewhat related problem that it isn't very pleasant to type near the bottom of the screen all the time. Word processors solve this by dividing documents into pages, allowing you to scroll to the bottom of the current page. Some text editors (Sublime Text) solve this by allowing you to scroll one screen height past the end of the file. Line numbers indicate where the document stops.

Maybe it's an idea to increase the padding-bottom by more than 55px, and then add a visual indicator of the borders of the document? (E.g. a real border, or make the padding a different color, light grey or so.) OTOH, that'd make it less WYSIWYG.

Thoughts?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re margin, then you don't use the space anymore for viewing the document, isn't it? It does (mostly) solve the problems I mentioned.

Edit: if you can figure out how to keep the keyboard up, you could even permanently show the toolbar on mobile just as well as using margin.

@ferndot

ferndot commented Nov 7, 2014

Copy link
Copy Markdown
Member

When this app was originally coded, mobile was the only target. As a result, it takes a lot of hacks to run Firetext on desktop. I have created an issue for us to discuss desktop strategies here: #203.

The editor then needs to know an awful lot about the UI around it, rather than just being a standalone rectangle.

What do you think about moving the formatting toolbar into the editor? This would reduce a lot of the cross-frame communication, and allow for different features for different file types. I have created a new issue for editor strategies: #204.

Also, there's the somewhat related problem that it isn't very pleasant to type near the bottom of the screen all the time.

That's an interesting idea. Let's file an issue about it!

Do you mind putting this pull request on hold until we can figure out exactly what we need to do?

@twiss

twiss commented Nov 7, 2014

Copy link
Copy Markdown
Collaborator Author

Thanks for splitting things up.

That's an interesting idea. Let's file an issue about it!

Done: #205

Do you mind putting this pull request on hold until we can figure out exactly what we need to do?

No, not really, but IMO #231 is a critical issue and all the others less so. So if things end up taking a long time I think we should merge the two lines of code you proposed in #195.

@twiss twiss mentioned this pull request Nov 29, 2014
@twiss

twiss commented Dec 3, 2014

Copy link
Copy Markdown
Collaborator Author

Could you take another look at this?

@ferndot

ferndot commented Dec 4, 2014

Copy link
Copy Markdown
Member

Sure!

@ferndot

ferndot commented Dec 4, 2014

Copy link
Copy Markdown
Member

There was padding added on the top, but the toolbar remains at the bottom. Also, the top padding displays on mobile.

I do like how the toolbar is not hidden when the editor is focused 馃憤

screen shot 2014-12-04 at 3 56 59 pm

@twiss

twiss commented Dec 4, 2014

Copy link
Copy Markdown
Collaborator Author

There was padding added on the top, but the toolbar remains at the bottom.

The padding-top is for zen mode, where the toolbar (button) is at the top.

Also, the top padding displays on mobile.

That was intentional, not that important though. I've changed it.

@ferndot

ferndot commented Dec 12, 2014

Copy link
Copy Markdown
Member

I think that this is almost ready to be merged!

I had an idea for the desktop zen mode interface. Do you like it?
screen shot 2014-12-11 at 11 33 59 pm

@twiss

twiss commented Dec 12, 2014

Copy link
Copy Markdown
Collaborator Author

Only con versus having it in the top-left corner is that, as the number of buttons in there grows, you have to search longer for a button. Doesn't matter now though.

@ferndot

ferndot commented Dec 12, 2014

Copy link
Copy Markdown
Member

@twiss: since zen mode is about simplicity, maybe we should only show a select few buttons?

@twiss

twiss commented Dec 12, 2014

Copy link
Copy Markdown
Collaborator Author

True. Go ahead, then!

ferndot added a commit that referenced this pull request Dec 12, 2014
@ferndot
ferndot merged commit b01ad2e into codexa:develop Dec 12, 2014
@ferndot

ferndot commented Dec 12, 2014

Copy link
Copy Markdown
Member

Good work, @twiss!

@twiss
twiss deleted the desktop branch December 12, 2014 14:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[desktop] Toolbar discussion

2 participants