Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312039

Change subject: Editor: Make the insertables more touch friendly
......................................................................

Editor: Make the insertables more touch friendly

"[... ] there should still be no other tap targets within 5mm (32 CSS
pixels), both horizontally and vertically, so that a user's finger
pressing on one tap target will not inadvertently touch another tap
target."

Bug: T146134
Change-Id: I1c28098a461fd5a2fc5b5d5d0646d6151ed34a57
---
M resources/css/ext.translate.editor.css
M resources/js/ext.translate.editor.js
2 files changed, 7 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/39/312039/1

diff --git a/resources/css/ext.translate.editor.css 
b/resources/css/ext.translate.editor.css
index c301366..97dbc2b 100644
--- a/resources/css/ext.translate.editor.css
+++ b/resources/css/ext.translate.editor.css
@@ -366,11 +366,15 @@
 }
 
 .tux-editor-insert-buttons button {
-       padding: 4px;
+       padding: 0 5px;
+       min-width: 30px;
+       margin-right: 5px;
+       margin-bottom: 5px;
        border: 1px solid #DDD;
        background: #FBFBFB;
        color: #252525;
        font-size: 13px;
+       line-height: 30px;
        height: 30px;
 }
 
diff --git a/resources/js/ext.translate.editor.js 
b/resources/js/ext.translate.editor.js
index 148768d..26c5f11 100644
--- a/resources/js/ext.translate.editor.js
+++ b/resources/js/ext.translate.editor.js
@@ -1262,8 +1262,8 @@
 
                        $buttonArea = this.$editor.find( 
'.tux-editor-insert-buttons' );
                        buttonAreaHeight = $buttonArea.height();
-                       $textarea.css( 'padding-bottom', buttonAreaHeight + 10 
);
-                       $buttonArea.css( 'top', -buttonAreaHeight - 5 );
+                       $textarea.css( 'padding-bottom', buttonAreaHeight + 5 );
+                       $buttonArea.css( 'top', -buttonAreaHeight );
                        autosize.update( $textarea );
                }
        };

-- 
To view, visit https://gerrit.wikimedia.org/r/312039
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c28098a461fd5a2fc5b5d5d0646d6151ed34a57
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to