浏览代码

Fix some minor issues.

oldj 6 年之前
父节点
当前提交
cd7a1c3c5d
共有 6 个文件被更改,包括 19 次插入13 次删除
  1. 15 9
      app-ui/frame/PreferencesPrompt.jsx
  2. 2 2
      app/server/checkUpdate.js
  3. 0 0
      app/ui/app.css
  4. 0 0
      app/ui/app.js
  5. 1 1
      app/version.js
  6. 1 1
      scripts/make.js

+ 15 - 9
app-ui/frame/PreferencesPrompt.jsx

@@ -262,17 +262,23 @@ export default class PreferencesPrompt extends React.Component {
           tabPosition="left"
           style={{minHeight: height}}
         >
-          <TabPane tab={lang.pref_tab_general} key="1" style={{height}}>
-            {this.prefLanguage()}
-            {this.prefChoiceMode()}
-            {/*{this.prefAutoLaunch()}*/}
-            {this.prefMinimizeAtLaunch()}
+          <TabPane tab={lang.pref_tab_general} key="1">
+            <div style={{minHeight: height}}>
+              {this.prefLanguage()}
+              {this.prefChoiceMode()}
+              {/*{this.prefAutoLaunch()}*/}
+              {this.prefMinimizeAtLaunch()}
+            </div>
           </TabPane>
-          <TabPane tab={lang.pref_tab_custom_cmd} key="2" style={{height}}>
-            {this.prefAfterCmd()}
+          <TabPane tab={lang.pref_tab_custom_cmd} key="2">
+            <div style={{minHeight: height}}>
+              {this.prefAfterCmd()}
+            </div>
           </TabPane>
-          <TabPane tab={lang.pref_tab_advanced} key="3" style={{height}}>
-            {this.prefAdvanced()}
+          <TabPane tab={lang.pref_tab_advanced} key="3">
+            <div style={{minHeight: height}}>
+              {this.prefAdvanced()}
+            </div>
           </TabPane>
         </Tabs>
       </div>

+ 2 - 2
app/server/checkUpdate.js

@@ -72,9 +72,9 @@ exports.check = (is_silent = false) => {
       //let body = res.text
 
       let $ = cheerio.load(body)
-      let a = $('.release-meta .css-truncate-target')
+      let a = $('.release-entry .css-truncate-target')
       if (a.length <= 0) {
-        console.log('not found versios!')
+        console.log('did not find any versions!')
         return
       }
       let last_v = $(a[0]).text()

文件差异内容过多而无法显示
+ 0 - 0
app/ui/app.css


文件差异内容过多而无法显示
+ 0 - 0
app/ui/app.js


+ 1 - 1
app/version.js

@@ -1 +1 @@
-module.exports = [3, 3, 13, 5396]
+module.exports = [3, 3, 13, 5397]

+ 1 - 1
scripts/make.js

@@ -14,7 +14,7 @@ const version = require('../app/version')
 
 const cfg_common = {
   appId: 'SwitchHosts',
-  productName: 'SwitchHosts',
+  productName: 'SwitchHosts!',
   copyright: moment().format('Y'),
   buildVersion: version[3],
   directories: {

部分文件因为文件数量过多而无法显示