mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Mobile view based on window width, drop terrible user agent detection
And improved responsive CSS
This commit is contained in:
parent
33214c1a33
commit
292f3289ac
28 changed files with 49 additions and 336 deletions
|
|
@ -4,6 +4,8 @@ namespace RainLoop;
|
|||
|
||||
class ServiceActions
|
||||
{
|
||||
const RL_LAYOUT = 'rllayout';
|
||||
|
||||
/**
|
||||
* @var \MailSo\Base\Http
|
||||
*/
|
||||
|
|
@ -673,14 +675,14 @@ class ServiceActions
|
|||
|
||||
public function ServiceMobileVersion() : string
|
||||
{
|
||||
Utils::SetCookie(Actions::RL_MOBILE_TYPE, 'mobile');
|
||||
Utils::SetCookie(self::RL_LAYOUT, 'mobile', 0, null, null, null, false);
|
||||
$this->oActions->Location('./');
|
||||
return '';
|
||||
}
|
||||
|
||||
public function ServiceDesktopVersion() : string
|
||||
{
|
||||
Utils::SetCookie(Actions::RL_MOBILE_TYPE, 'desktop');
|
||||
Utils::SetCookie(self::RL_LAYOUT, 'desktop', 0, null, null, null, false);
|
||||
$this->oActions->Location('./');
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue