ElkArte Community

Elk Development => Theme development => Topic started by: scripple on April 04, 2014, 10:44:47 pm

Title: Two editor questions on mobile
Post by: scripple on April 04, 2014, 10:44:47 pm
A few things I've noticed on the editor on mobile.

1)  The resizing of the text area doesn't work.  Is this a setting?

2) The " shortcuts: shift+alt+s submit/post, shift+alt+p preview or shift+alt+d save draft " text should really be hidden on mobile shouldn't it?  It kind of pushes the buttons around depending on text / screen size and I don't really see anyone using those shortcuts on a touch screen.
Title: Re: Two editor questions on mobile
Post by: emanuele on April 05, 2014, 03:00:02 am
1) you mean on your mobile (which one? ;)) you can't resize the area with the bar at the bottom? The resize should work, maybe that mobile has some problem with the specific code... dunno, I don't have any smart mobile stuff... :(

2) That's possible it may even be possible with a @media:,I think Elk puts a css class or id in <body>, off the top of my head I'm not sure what it looks like. but something like this may work:
Code: [Select]
<span class="smalltext floatleft">
should be changed to:
Code: [Select]
<span class="shortcuts">
and then something like:
Code: [Select]
.mobile_class .shortcuts {
    display: none;
}
Title: Re: Two editor questions on mobile
Post by: scripple on April 05, 2014, 03:08:58 am
I have an SGS4 and yes I cannot expand the text area with the handle.  I can expand normal text areas though.

And I agree about adding a class there so we can hide it.
Title: Re: Two editor questions on mobile
Post by: emanuele on April 05, 2014, 08:19:28 am
What browser?
Title: Re: Two editor questions on mobile
Post by: scripple on April 05, 2014, 11:58:04 am
Stock Android 4.4.2 with Chrome, Chrome Beta, and Dolphin browsers.   Also happens on Desktop Chrome in emulation mode of just about anything.  Although for that one if you try really hard you can get it to expand the textarea one pixel per press and drag occasionally.


Title: Re: Two editor questions on mobile
Post by: emanuele on April 06, 2014, 08:00:02 am
That's an SCEditor bug apparently, I can't do anything on the site there too:
http://www.sceditor.com/

2) has been fixed here:
https://github.com/emanuele45/Dialogo/commit/ea07904d6b17a63287cbd8400c69cafcf9717789
Title: Re: Two editor questions on mobile
Post by: scripple on April 06, 2014, 11:01:43 am
Look at line 404ish on the float:left. I don't really think that's what you wanted to do.
Title: Re: Two editor questions on mobile
Post by: emanuele on April 06, 2014, 12:33:32 pm
Darn!

I did a copy&paste without realizing the focus was on another window... fixed, thanks!