diff --git a/customize.dist/src/less/toolbar.less b/customize.dist/src/less/toolbar.less index fa9bf2f60..2b5798594 100644 --- a/customize.dist/src/less/toolbar.less +++ b/customize.dist/src/less/toolbar.less @@ -91,8 +91,7 @@ } .cryptpad-state { - line-height: 30px; /* equivalent to 26px + 2*2px margin used for buttons */ - float: left; + line-height: 32px; /* equivalent to 26px + 2*2px margin used for buttons */ } .rightside-button { @@ -324,6 +323,10 @@ text-transform: uppercase; } .cryptpad-toolbar-username { + line-height: 32px; + button { + line-height: initial; + } } .lag { height: 15px !important; diff --git a/customize.dist/toolbar.css b/customize.dist/toolbar.css index f3e44fb29..a6efcadb0 100644 --- a/customize.dist/toolbar.css +++ b/customize.dist/toolbar.css @@ -96,9 +96,8 @@ } } .cryptpad-toolbar .cryptpad-state { - line-height: 30px; + line-height: 32px; /* equivalent to 26px + 2*2px margin used for buttons */ - float: left; } .cryptpad-toolbar .rightside-button { float: right; @@ -332,6 +331,12 @@ font-weight: bold; text-transform: uppercase; } +.cryptpad-toolbar-username { + line-height: 32px; +} +.cryptpad-toolbar-username button { + line-height: initial; +} .lag { height: 15px !important; width: 15px !important; diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 6d415e2e6..f7f5a0294 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -210,6 +210,7 @@ define(function () { out.fc_newfolder = "Nouveau dossier"; out.fc_rename = "Renommer"; out.fc_open = "Ouvrir"; + out.fc_open_ro = "Ouvrir (lecture seule)"; out.fc_delete = "Supprimer"; out.fc_restore = "Restaurer"; out.fc_remove = "Supprimer définitivement"; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 7e1ba420c..9cf23c8ef 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -212,6 +212,7 @@ define(function () { out.fc_newfolder = "New folder"; out.fc_rename = "Rename"; out.fc_open = "Open"; + out.fc_open_ro = "Open (read-only)"; out.fc_delete = "Delete"; out.fc_restore = "Restore"; out.fc_remove = "Delete permanently"; diff --git a/www/common/toolbar.js b/www/common/toolbar.js index 260e7d22d..45dfa6c1f 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -288,7 +288,8 @@ define([ 'class': LAG_ELEM_CLS, id: uid(), }); - $container.prepend($lag); + // Now added in createUserAdmin + //$container.prepend($lag); return $lag[0]; }; @@ -356,7 +357,9 @@ define([ $linkContainer.append($aTagSmall).append($aTagBig); }; - var createUserAdmin = function ($topContainer) { + var createUserAdmin = function ($topContainer, lagElement) { + var $lag = $(lagElement); + var $userContainer = $('', { 'class': USER_CLS }).appendTo($topContainer); @@ -365,6 +368,8 @@ define([ 'class': STATE_CLS }).text(Messages.synchronizing).appendTo($userContainer); + $userContainer.append($lag); + var $span = $('' , { 'class': 'cryptpad-language' }); @@ -478,8 +483,8 @@ define([ var userListElement = config.userData ? createUserList(toolbar.find('.' + LEFTSIDE_CLS), readOnly) : undefined; var $titleElement = createTitle(toolbar.find('.' + TOP_CLS), readOnly, config.title, Cryptpad); var $linkElement = createLinkToMain(toolbar.find('.' + TOP_CLS)); - var $userAdminElement = createUserAdmin(toolbar.find('.' + TOP_CLS)); var lagElement = createLagElement($userAdminElement); + var $userAdminElement = createUserAdmin(toolbar.find('.' + TOP_CLS), lagElement); var spinner = createSpinner($userAdminElement); var userData = config.userData; // readOnly = 1 (readOnly enabled), 0 (disabled), -1 (old pad without readOnly mode) diff --git a/www/drive/file.css b/www/drive/file.css index 96b02c9b0..7dd19d9ca 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -402,6 +402,8 @@ button.newElement:hover { } .dropdown-bar-content hr { margin: 5px 0px; + height: 1px; + background: #bbb; } /* Change color of dropdown links on hover */ diff --git a/www/drive/inner.html b/www/drive/inner.html index 85a5f2340..f1df46b3c 100644 --- a/www/drive/inner.html +++ b/www/drive/inner.html @@ -15,9 +15,10 @@
-