返回提交历史
Modified
README.md
+1
-1
Modified
g4f/gui/client/static/css/style.css
+10
-3
Modified
g4f/gui/client/static/js/chat.v1.js
+3
-1
XFEstudio/gpt4free
Improve styling mobile
aff3ec5b
代码差异
3 个文件
+14
-5
@@ -189,7 +189,7 @@ image_url = response.data[0].url
189
189
**Full Documentation for Python API**
190
190
191
191
- New AsyncClient API from G4F: [/docs/async_client](/docs/async_client.md)
192
- Client API like the OpenAI Python library: [/docs/client](/docs/async_client.md)
192
- Client API like the OpenAI Python library: [/docs/client](/docs/client.md)
193
193
- Legacy API with python modules: [/docs/legacy](/docs/legacy.md)
194
194
195
195
#### Web UI
@@ -239,6 +239,7 @@ body {
239
239
width: 100%;
240
240
overflow-wrap: break-word;
241
241
display: flex;
242
flex-direction: column;
242
243
gap: var(--section-gap);
243
244
padding: var(--inner-gap) var(--section-gap);
244
245
padding-bottom: 0;
@@ -589,7 +590,7 @@ label[for="camera"] {
589
590
}
590
591
591
592
.settings .bottom_buttons {
592
flex-direction: row;
593
flex-direction: column;
593
594
}
594
595
595
596
.settings .bottom_buttons button {
@@ -652,6 +653,12 @@ select {
652
653
.field {
653
654
padding-right: 15px
654
655
}
656
.message {
657
flex-direction: row;
658
}
659
.settings .bottom_buttons {
660
flex-direction: row;
661
}
655
662
}
656
663
657
664
.input-box {
@@ -1070,7 +1077,6 @@ a:-webkit-any-link {
1070
1077
1071
1078
.settings {
1072
1079
width: 100%;
1073
min-width: 700px;
1074
1080
display: flex;
1075
1081
flex-direction: column;
1076
1082
}
@@ -1078,6 +1084,7 @@ a:-webkit-any-link {
1078
1084
.settings .paper {
1079
1085
overflow: auto;
1080
1086
flex-direction: column;
1087
min-width: 400px;
1081
1088
}
1082
1089
1083
1090
.settings .field {
@@ -1135,7 +1142,7 @@ a:-webkit-any-link {
1135
1142
}
1136
1143
1137
1144
#message-input {
1138
height: 82px;
1145
height: 90px;
1139
1146
margin-left: 20px;
1140
1147
max-height: 200px;
1141
1148
}
@@ -96,10 +96,12 @@ const register_message_buttons = async () => {
96
96
el.dataset.click = "true";
97
97
el.addEventListener("click", async () => {
98
98
if ("active" in el.classList || window.doSpeech) {
99
el.classList.add("blink")
99
100
stopped = true;
100
101
return;
101
102
}
102
103
if (stopped) {
104
el.classList.remove("blink")
103
105
stopped = false;
104
106
return;
105
107
}
@@ -125,7 +127,7 @@ const register_message_buttons = async () => {
125
127
sound.controls = 'controls';
126
128
sound.src = url;
127
129
sound.type = 'audio/wav';
128
if (ended) {
130
if (ended && !stopped) {
129
131
sound.autoplay = true;
130
132
}
131
133
sound.onended = function() {