Skip to content

Commit 3d56d2d

Browse files
committed
更新[BoxJs TF]: 修复代码编辑器高度, 部分界面左右滑动范围问题
1 parent 83dd6d6 commit 3d56d2d

3 files changed

Lines changed: 24 additions & 9 deletions

File tree

box/chavy.boxjs.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
margin-bottom: constant(safe-area-inset-bottom) !important;
7070
margin-bottom: env(safe-area-inset-bottom) !important;
7171
}
72+
.v-main .container {
73+
height: 100%;
74+
}
7275
.v-bottom-navigation,
7376
.v-bottom-sheet {
7477
padding-bottom: constant(safe-area-inset-bottom);
@@ -457,7 +460,6 @@
457460
<!-- 主页 -->
458461
<v-container
459462
fluid
460-
class="fill-height"
461463
v-show="view === ''"
462464
v-touch="{
463465
up: () => {
@@ -827,7 +829,7 @@
827829
right: back
828830
}"
829831
>
830-
<v-card flat style="width: inherit;">
832+
<v-card rounded="0" flat style="width: inherit;">
831833
<v-subheader>
832834
<h2>脚本编辑器</h2>
833835
<v-spacer></v-spacer>
@@ -846,7 +848,7 @@ <h2>脚本编辑器</h2>
846848
right: back
847849
}"
848850
>
849-
<v-subheader class="align-self-start">
851+
<v-subheader>
850852
<h2 :style="appTitleStyle">{{curapp.name}}</h2>
851853
<v-spacer></v-spacer>
852854
<v-btn v-if="curapp.script" icon :loading="isLoading" @click="runRemoteScript(curapp.script, curapp.script_timeout)">
@@ -1113,21 +1115,20 @@ <h2 :style="appTitleStyle">{{curapp.name}}</h2>
11131115
<!-- 备份详情 -->
11141116
<v-container
11151117
fluid
1116-
class="fill-height"
11171118
v-else-if="view === 'bak' && !!curbak"
11181119
v-touch="{
11191120
right: back
11201121
}"
11211122
>
11221123
<v-subheader>
1123-
<h2>{{curbak.name}}</h2>
1124+
<h2 :style="appTitleStyle">{{curbak.name}}</h2>
11241125
<v-spacer></v-spacer>
11251126
<v-btn icon color="primary" @click="revertGlobalBak">
11261127
<v-icon>mdi-share-circle</v-icon>
11271128
</v-btn>
11281129
</v-subheader>
1129-
<v-card flat class="mb-4" color="transparent">
1130-
<v-card-subtitle class="py-0">
1130+
<v-card class="mb-4">
1131+
<v-card-subtitle>
11311132
<p class="my-0">说明:</p>
11321133
<p class="my-0">1. 点击右上角 <v-icon color="primary" small>mdi-share-circle</v-icon> 按钮还原!</p>
11331134
<p class="my-0">2. 点击 <v-icon color="primary" small>mdi-clipboard-text-multiple</v-icon> 按钮可复制备份.</p>
@@ -1745,7 +1746,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
17451746
this.ui.editor = monaco.editor.create(document.getElementById('container'), {
17461747
fontSize: 12,
17471748
tabSize: 2,
1748-
value: this.env === 'Surge' && this.box.usercfgs.httpapi ? surgejs_demo.join('\n') : envjs_demo.join('\n'),
1749+
value: this.env.id === 'Surge' && this.box.usercfgs.httpapi ? surgejs_demo.join('\n') : envjs_demo.join('\n'),
17491750
language: 'javascript',
17501751
minimap: { enabled: false },
17511752
theme: this.isDarkMode ? 'vs-dark' : 'vs'

box/chavy.boxjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
33
// 为 eval 准备的上下文环境
44
const $eval_env = {}
55

6-
$.version = '0.7.46'
6+
$.version = '0.7.47'
77
$.versionType = 'beta'
88

99
/**

box/release/box.release.tf.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.7.46",
5+
"tags": ["beta"],
6+
"author": "@chavyleung",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"msg": "更新[BoxJs TF]: 修复代码编辑器高度, 部分界面左右滑动范围问题",
10+
"notes": [
11+
{
12+
"name": "修复",
13+
"descs": ["代码编辑器高度问题", "部分界面只能在有内容的范围左右滑动问题"]
14+
}
15+
]
16+
},
317
{
418
"version": "0.7.46",
519
"tags": ["beta"],

0 commit comments

Comments
 (0)