[Libreoffice-commits] online.git: loleaflet/css loleaflet/src

Pedro Pinto Silva (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 19 11:44:07 UTC 2019


 loleaflet/css/loleaflet.css              |    6 ++++--
 loleaflet/src/control/Control.Menubar.js |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit e981bf26b32a260df25553c8232f6b73f92e4fa5
Author:     Pedro Pinto Silva <pedro.silva at collabora.com>
AuthorDate: Thu Dec 19 12:37:44 2019 +0100
Commit:     Pedro Pinto da Silva <pedro.silva at collabora.com>
CommitDate: Thu Dec 19 12:43:49 2019 +0100

    Desktop: Document-container: Fix missing text cursor on text document types
    - make sure document container has doctype class every time
    - set auto cursor for spreadsheet and presentations only
    
    Change-Id: I2cb7b0bdaefa51e01745291c78501a7495da2289
    Reviewed-on: https://gerrit.libreoffice.org/85515
    Reviewed-by: Pedro Pinto da Silva <pedro.silva at collabora.com>
    Tested-by: Pedro Pinto da Silva <pedro.silva at collabora.com>

diff --git a/loleaflet/css/loleaflet.css b/loleaflet/css/loleaflet.css
index 626ec32c6..52038a224 100644
--- a/loleaflet/css/loleaflet.css
+++ b/loleaflet/css/loleaflet.css
@@ -31,9 +31,11 @@
 	left: 0px;
 	right: 0px;
 	z-index: 10;
-	cursor: default;
+	cursor: auto;
+}
+#document-container.text-doctype > #map{
+	cursor: text;
 }
-
 .scroll-container .mCSB_scrollTools.mCSB_1_scrollbar {
 	position: absolute;
 	z-index: 1000;
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index a9ad06f6d..e27e24efd 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -1228,7 +1228,8 @@ L.Control.Menubar = L.Control.extend({
 		} else if (docType === 'presentation' || docType === 'drawing') {
 			iconClass += ' impress-icon-img';
 		}
-		$('.main-nav').addClass(docType += '-color-indicator');
+		$('.main-nav').addClass(docType + '-color-indicator');
+		$('#document-container').addClass(docType + '-doctype');
 
 		var liItem = L.DomUtil.create('li', '');
 		liItem.id = 'document-header';


More information about the Libreoffice-commits mailing list