Skip to content

Commit

Permalink
紧急修复
Browse files Browse the repository at this point in the history
1、修复缩小的页面变形;
2、输入t文本居中;
3、修复报错问题。
  • Loading branch information
xszyou committed Oct 28, 2024
1 parent 4cfad5a commit f11c9ca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions gui/static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ html {
-moz-osx-font-smoothing: grayscale;
width: 100%;
height: 100vh;
min-width: 1719px;
overflow: hidden;
}
.main_bg{
Expand Down
1 change: 1 addition & 0 deletions gui/static/css/setting.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ body {
-moz-osx-font-smoothing: grayscale;
width: 100%;
height: 100vh;
min-width: 1719px;
overflow: hidden;
}

Expand Down
13 changes: 9 additions & 4 deletions gui/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,17 @@ class FayInterface {
loadUserList() {
this.fayService.getUserList().then((response) => {
if (response && response.list) {
if (response.list.length == 0){
info = [];
info[0] = 1;
info[1] = 'User';
this.userList.push(info)
this.selectUser(info);
}else{
this.userList = response.list;

if (this.userList.length > 0) {
this.selectUser(this.userList[0]);
}
this.selectUser(this.userList[0]);
}
}
});
},
selectUser(user) {
Expand Down
2 changes: 1 addition & 1 deletion gui/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<div class="inputmessage">
<div class="inputmessage_voice" ><img src="{{ url_for('static',filename='images/voice.png') }}" alt="" style="filter: grayscale(100%);" ></div>
<div class="inputmessage_input"> <textarea class="text_in" placeholder="请输入内容" v-model="newMessage" @keyup.enter="sendMessage"></textarea></div>
<div class="inputmessage_input"> <textarea class="text_in" placeholder="请输入内容" v-model="newMessage" @keyup.enter="sendMessage" style="padding-top: 13px;"></textarea></div>
<div class="inputmessage_send"><img src="{{ url_for('static',filename='images/send.png') }}" alt="发送信息" @click="sendMessage"></div>

<div class="inputmessage_open">
Expand Down
2 changes: 1 addition & 1 deletion gui/templates/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<li> <span class="font_name">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业:</span><input class="section_1" :disabled="!configEditable" v-model="attribute_job" placeholder="请输入内容"/></li>
<li> <span class="font_name">&nbsp;联系方式:</span><input class="section_1" :disabled="!configEditable" v-model="attribute_contact" placeholder="请输入内容" /></li>
<li> <span class="font_name">Q&A文件:</span><input class="section_1" :disabled="!configEditable" v-model="QnA" placeholder="请输入内容" /></li>
<li> <span class="font_name">补&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;充:</span><textarea class="section_1" style="height: 165px;vertical-align: text-top;"></textarea></li>
<li> <span class="font_name">补&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;充:</span><textarea class="section_1" style="height: 165px;vertical-align: middle;"></textarea></li>
</ul>
</div>
<div class="setting_rup">
Expand Down

0 comments on commit f11c9ca

Please sign in to comment.