Commit dae08b5384b548c187bf1d22d6631f4b9e22049b

Authored by David Guilherme
1 parent 66d47f16
Exists in master

increase window size

@@ -13,3 +13,5 @@ node_modules @@ -13,3 +13,5 @@ node_modules
13 **/*.crx 13 **/*.crx
14 **/*.xpi 14 **/*.xpi
15 **/*.safariextz 15 **/*.safariextz
  16 +
  17 +*.zip
16 \ No newline at end of file 18 \ No newline at end of file
chrome/background.js
@@ -20,8 +20,8 @@ chrome.contextMenus.onClicked.addListener( function (info) { @@ -20,8 +20,8 @@ chrome.contextMenus.onClicked.addListener( function (info) {
20 url: "app/player/window.html", 20 url: "app/player/window.html",
21 top: 10, 21 top: 10,
22 left: 10, 22 left: 10,
23 - width: 400,  
24 - height: 500, 23 + width: 540,
  24 + height: 450,
25 type: "popup" 25 type: "popup"
26 }, function (w) { 26 }, function (w) {
27 popup = w; 27 popup = w;
firefox/index.js
@@ -36,7 +36,7 @@ cm.Item({ @@ -36,7 +36,7 @@ cm.Item({
36 app.window = browser.open( 36 app.window = browser.open(
37 self.data.url('player/window.html'), 37 self.data.url('player/window.html'),
38 'VLibras Plugin', 38 'VLibras Plugin',
39 - 'width=400,height=500,menubar=no,resizable=yes' 39 + 'width=540,height=450,menubar=no,resizable=yes'
40 ); 40 );
41 } else { 41 } else {
42 app.worker.port.emit('selectedText', app.selectedText); 42 app.worker.port.emit('selectedText', app.selectedText);
player/TemplateData/style.css
@@ -95,6 +95,7 @@ html, body, #canvas { @@ -95,6 +95,7 @@ html, body, #canvas {
95 95
96 #info-screen.active { 96 #info-screen.active {
97 display: -webkit-flex; 97 display: -webkit-flex;
  98 + display: flex;
98 } 99 }
99 100
100 #info-screen .arrow { 101 #info-screen .arrow {
@@ -110,6 +111,7 @@ html, body, #canvas { @@ -110,6 +111,7 @@ html, body, #canvas {
110 #info-tabset { 111 #info-tabset {
111 flex-grow: 4; 112 flex-grow: 4;
112 display: -webkit-flex; 113 display: -webkit-flex;
  114 + display: flex;
113 flex-direction: column; 115 flex-direction: column;
114 -webkit-flex-direction: column; 116 -webkit-flex-direction: column;
115 padding: 0 1em; 117 padding: 0 1em;
safari.safariextension/app/middleware.js
1 -window.resizeTo(400, 500); 1 +window.resizeTo(540, 470);
2 2
3 document.addEventListener('player:verified', function() { 3 document.addEventListener('player:verified', function() {
4 safari.self.addEventListener('message', function (request) { 4 safari.self.addEventListener('message', function (request) {