From 78e492c764e1d7f37b78ccd7199065719c34d964 Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Sat, 12 Aug 2017 20:33:52 +0200
Subject: [PATCH] Tweak 'stay open' pin position and tooltip

---
 Resources/Scripts/code.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js
index f2ba863e..328aa9c5 100644
--- a/Resources/Scripts/code.js
+++ b/Resources/Scripts/code.js
@@ -759,7 +759,7 @@
     addRule(".js-column-header .column-header-link { padding: 0; }"); // fix column header tooltip hover box
     addRule(".js-column-header .column-header-link .icon { padding: 9px 4px; width: calc(1em + 8px); height: 100%; box-sizing: border-box; }"); // fix column header tooltip hover box
     
-    addRule("#td-compose-drawer-pin { margin: 17px 3px 0 0; transition: transform 0.1s ease; fill: #fff; float: right; cursor: pointer; }"); // replace 'stay open' checkbox with a pin icon
+    addRule("#td-compose-drawer-pin { margin: 17px 4px 0 0; transition: transform 0.1s ease; fill: #fff; float: right; cursor: pointer; }"); // replace 'stay open' checkbox with a pin icon
     addRule(".js-docked-compose footer { display: none; }"); // replace 'stay open' checkbox with a pin icon
     addRule(".compose-content { bottom: 0 !important; }"); // replace 'stay open' checkbox with a pin icon
     
@@ -866,7 +866,7 @@
   // Block: Add a pin icon to make tweet compose drawer stay open.
   //
   onAppReady.push(function(){
-    let ele = $(`<svg id="td-compose-drawer-pin" viewBox="0 0 24 24" class="icon js-show-tip" data-original-title="Stay Open" data-tooltip-position="left">
+    let ele = $(`<svg id="td-compose-drawer-pin" viewBox="0 0 24 24" class="icon js-show-tip" data-original-title="Stay open" data-tooltip-position="left">
        <path d="M9.884,16.959l3.272,0.001l-0.82,4.568l-1.635,0l-0.817,-4.569Z"/>
        <rect x="8.694" y="7.208" width="5.652" height="7.445"/>
        <path d="M16.877,17.448c0,-1.908 -1.549,-3.456 -3.456,-3.456l-3.802,0c-1.907,0 -3.456,1.548 -3.456,3.456l10.714,0Z"/>