Skip to content

Commit

Permalink
oujs - Meta View 4.0.4.0
Browse files Browse the repository at this point in the history
* Refocus on .meta.json by shortening .meta.js Ace box for OpenUserJS/OpenUserJS.org#725
  • Loading branch information
Martii committed Oct 8, 2015
1 parent fe93053 commit 004fb72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/oujs/Meta View/oujs - Meta View.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @copyright 2014+, Marti Martz (http://userscripts.org/users/37004)
// @license (CC); http://creativecommons.org/licenses/by-nc-sa/3.0/
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @version 4.0.3.0
// @version 4.0.4.0
// @icon https://www.gravatar.com/avatar/7ff58eb098c23feafa72e0b4cd13f396?r=G&s=48&default=identicon

// @homepageURL https://github.com/Martii/UserScripts/tree/master/src/oujs/Meta%20View
Expand Down Expand Up @@ -296,7 +296,7 @@
// Simulate a Source Code page
var NodeStyle = document.createElement('style');
NodeStyle.setAttribute('type', 'text/css');
var min_height = 32.30;
var min_height = 51.6;
var textSVGMetaJS = 'data:image/svg+xml;base64,' +
'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0' +
'dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMj' +
Expand Down Expand Up @@ -441,7 +441,8 @@

NodeStyle.textContent =
[
'#mdb, #json { min-height: 200px; min-height: -moz-calc(' + min_height + 'vh); min-height: -o-calc(' + min_height + 'vh); min-height: -webkit-calc(' + min_height + 'vh); min-height: calc(' + min_height + 'vh); }',
'#mdb { min-height: 115px; }',
'#json { min-height: 200px; min-height: -moz-calc(' + min_height + 'vh); min-height: -o-calc(' + min_height + 'vh); min-height: -webkit-calc(' + min_height + 'vh); min-height: calc(' + min_height + 'vh); }',
'.path-divider { color: #666; margin: 0 0.25em; }',
'#mdb .ace_gutter { background: #ebebeb url(' + textSVGMetaJS + ') repeat-y scroll left top !important; }',
'#json .ace_gutter { background: #ebebeb url(' + textSVGMetaJSON + ') repeat-y scroll left top !important; }'
Expand Down

0 comments on commit 004fb72

Please sign in to comment.