diff -urN ../larry-1.6.1.orig/includes/links.html ./includes/links.html
--- ../larry-1.6.1.orig/includes/links.html 2023-07-11 19:26:44.000000000 +0300
+++ ./includes/links.html 2024-04-20 19:26:23.905162000 +0300
@@ -2,6 +2,7 @@
+
.css" />
diff -urN ../larry-1.6.1.orig/includes/mailtoolbar.html ./includes/mailtoolbar.html
--- ../larry-1.6.1.orig/includes/mailtoolbar.html 2023-07-11 19:26:44.000000000 +0300
+++ ./includes/mailtoolbar.html 2024-04-20 19:26:23.905505000 +0300
@@ -15,8 +15,8 @@
-
-
+
+
diff -urN ../larry-1.6.1.orig/ui.js ./ui.js
--- ../larry-1.6.1.orig/ui.js 2023-07-11 19:26:44.000000000 +0300
+++ ./ui.js 2024-04-20 19:26:23.906600000 +0300
@@ -356,7 +356,8 @@
// set min-width to show all toolbar buttons
var screen = $('body.minwidth');
if (screen.length) {
- screen.css('min-width', $('.toolbar').width() + $('#quicksearchbar').width() + $('#searchfilter').width() + 30);
+// screen.css('min-width', $('.toolbar').width() + $('#quicksearchbar').width() + $('#searchfilter').width() + 30);
+ screen.css('min-width', $('.toolbar').width() + 30);
}
// don't use $(window).resize() due to some unwanted side-effects
@@ -381,6 +382,27 @@
layout_messageview();
else if (rcmail.env.action == 'compose')
layout_composeview();
+ else {
+ var screen = $('body.minwidth');
+ if (screen.length) {
+ var toolbar = $('.toolbar');
+ var quicksearchbar = $('#quicksearchbar');
+ var searchfilter = $('#searchfilter');
+ var mainscreencontent = $('#mainscreencontent');
+ screen.css('min-width', $(toolbar).width() + 30);
+ var mainscreen = $('#mainscreen');
+ $(mainscreen).css('min-width', ($(toolbar).width() + 30) - $(mainscreen).css('left').replace('px', '') - $(mainscreen).css('right').replace('px', ''));
+ if ($(screen).width() > $(toolbar).width() + $(quicksearchbar).width() + $(searchfilter).width() + 30) {
+ $(searchfilter).css('top', '2px');
+ $(quicksearchbar).css('top', '2px');
+ $(mainscreencontent).css('top', '42px');
+ } else {
+ $(searchfilter).css('top', '40px').css('visibility', 'visible');
+ $(quicksearchbar).css('top', '40px').css('visibility', 'visible');
+ $(mainscreencontent).css('top', '75px');
+ }
+ }
+ }
}
// make iframe footer buttons float if scrolling is active
@@ -1276,6 +1298,7 @@
.attr('role', 'presentation')
.addClass('splitter ' + (this.horizontal ? 'splitter-h' : 'splitter-v'))
.appendTo(this.parent)
+ .on('touchstart', onDragStart)
.mousedown(onDragStart);
if (this.horizontal) {
@@ -1356,6 +1379,10 @@
me.p2pos = me.relative ? me.p2.position() : me.p2.offset();
me.drag_active = true;
+ if (e.type == 'touchstart')
+ // start listening to touchmove events
+ $(document).on('touchmove.' + this.id, onDrag).on('touchend.' + this.id, onDragStop);
+ else if (e.type == 'mousedown')
// start listening to mousemove events
$(document).on('mousemove.' + this.id, onDrag).on('mouseup.' + this.id, onDragStop);
@@ -1397,7 +1424,8 @@
*/
function onDragAction(e)
{
- var pos = rcube_event.get_mouse_pos(e);
+// var pos = rcube_event.get_mouse_pos(e);
+ var pos = (e.type == 'touchmove' ? rcube_event.get_touch_pos(e) : rcube_event.get_mouse_pos(e));
if (me.relative) {
var parent = me.parent.offset();
diff -urN ../larry-1.6.1.orig/ui.min.js ./ui.min.js
--- ../larry-1.6.1.orig/ui.min.js 2023-07-11 19:26:44.000000000 +0300
+++ ./ui.min.js 2024-04-20 19:27:39.988109000 +0300
@@ -1,13 +1 @@
-/**
- * Roundcube functions for default skin interface
- *
- * Copyright (c) The Roundcube Dev Team
- *
- * The contents are subject to the Creative Commons Attribution-ShareAlike
- * License. It is allowed to copy, distribute, transmit and to adapt the work
- * by keeping credits to the original autors in the README file.
- * See http://creativecommons.org/licenses/by-sa/3.0/ for details.
- *
- * @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0
- */
-function rcube_mail_ui(){var a,o,i,e,s={},n={},r={forwardmenu:{editable:1},searchmenu:{editable:1,callback:function(e){if(e&&rcmail.env.search_mods){var t,i="*",s=n.searchmenu,a=$('input:checkbox[name="s_mods[]"]',s),o=rcmail.env.mailbox,e=rcmail.env.search_mods,s=rcmail.env.search_scope||"base";if("mail"==rcmail.env.task&&(e=e[o]||e["*"],i="text",$('input:radio[name="s_scope"]').prop("checked",!1).filter("#s_scope_"+s).prop("checked",!0)),e[i])a.map(function(){this.checked=!0,this.disabled=this.value!=i});else for(t in a.prop("disabled",!1).prop("checked",!1),e)$("#s_mod_"+t).prop("checked",!0)}}},attachmentmenu:{},listoptions:{editable:1},groupmenu:{above:1},mailboxmenu:{above:1},spellmenu:{callback:function(e,t){var i,s,a=rcmail.spellcheck_lang(),o=$("ul",t.obj);if(!o.length){for(i in o=$('