From 34d2540d9708ee767c1137651bab2b5263ed24f8 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Wed, 16 Nov 2016 14:38:19 +0300 Subject: [PATCH] [DE mobile] Fix search and replace. --- apps/documenteditor/mobile/app/template/Settings.template | 2 +- apps/documenteditor/mobile/app/view/Settings.js | 1 + apps/documenteditor/mobile/resources/css/app-material.css | 6 ++++++ .../mobile/resources/less/material/_search.less | 8 ++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/mobile/app/template/Settings.template b/apps/documenteditor/mobile/app/template/Settings.template index 6c7f32ea3..cd1e7aa9e 100644 --- a/apps/documenteditor/mobile/app/template/Settings.template +++ b/apps/documenteditor/mobile/app/template/Settings.template @@ -18,7 +18,7 @@
-
Search
+
Find
diff --git a/apps/documenteditor/mobile/app/view/Settings.js b/apps/documenteditor/mobile/app/view/Settings.js index 32f246fba..20771c1cb 100644 --- a/apps/documenteditor/mobile/app/view/Settings.js +++ b/apps/documenteditor/mobile/app/view/Settings.js @@ -102,6 +102,7 @@ define([ if (isEdit) { $layour.find('#settings-edit-document').hide(); $layour.find('#settings-readermode').hide(); + $layour.find('#settings-search .item-title').text('Find and Replace') } else { $layour.find('#settings-readermode input:checkbox') .attr('checked', Common.SharedSettings.get('readerMode')) diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 03f88ee78..d6ea9600a 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -5842,6 +5842,9 @@ html.pixel-ratio-3 .color-palette a { .tablet .searchbar.document.replace .right .replace { display: flex; } +.tablet .searchbar.document.replace .link.replace { + font-size: 16px; +} .tablet .searchbar.document .center { width: 100%; display: flex; @@ -5863,6 +5866,9 @@ html.pixel-ratio-3 .color-palette a { .phone .searchbar.document.replace { height: 96px; } +.phone .searchbar.document.replace .link.replace { + font-size: 16px; +} .phone .searchbar.document.replace .left { margin-top: -48px; } diff --git a/apps/documenteditor/mobile/resources/less/material/_search.less b/apps/documenteditor/mobile/resources/less/material/_search.less index fdbe9bc7b..93a72ea17 100644 --- a/apps/documenteditor/mobile/resources/less/material/_search.less +++ b/apps/documenteditor/mobile/resources/less/material/_search.less @@ -14,6 +14,10 @@ display: flex; } } + + .link.replace { + font-size: 16px; + } } // Search mode @@ -52,6 +56,10 @@ .searchbar.document.replace { height: @phoneSearchHeight * 2; + .link.replace { + font-size: 16px; + } + .left { margin-top: -@phoneSearchHeight; }