Skip to content

Commit

Permalink
Merge pull request #1813 from hlohaus/satur
Browse files Browse the repository at this point in the history
Improve styling mobile
  • Loading branch information
hlohaus authored Apr 9, 2024
2 parents 4c23b4c + aff3ec5 commit 0bb08e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ image_url = response.data[0].url
**Full Documentation for Python API**

- New AsyncClient API from G4F: [/docs/async_client](/docs/async_client.md)
- Client API like the OpenAI Python library: [/docs/client](/docs/async_client.md)
- Client API like the OpenAI Python library: [/docs/client](/docs/client.md)
- Legacy API with python modules: [/docs/legacy](/docs/legacy.md)

#### Web UI
Expand Down
13 changes: 10 additions & 3 deletions g4f/gui/client/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ body {
width: 100%;
overflow-wrap: break-word;
display: flex;
flex-direction: column;
gap: var(--section-gap);
padding: var(--inner-gap) var(--section-gap);
padding-bottom: 0;
Expand Down Expand Up @@ -589,7 +590,7 @@ label[for="camera"] {
}

.settings .bottom_buttons {
flex-direction: row;
flex-direction: column;
}

.settings .bottom_buttons button {
Expand Down Expand Up @@ -652,6 +653,12 @@ select {
.field {
padding-right: 15px
}
.message {
flex-direction: row;
}
.settings .bottom_buttons {
flex-direction: row;
}
}

.input-box {
Expand Down Expand Up @@ -1070,14 +1077,14 @@ a:-webkit-any-link {

.settings {
width: 100%;
min-width: 700px;
display: flex;
flex-direction: column;
}

.settings .paper {
overflow: auto;
flex-direction: column;
min-width: 400px;
}

.settings .field {
Expand Down Expand Up @@ -1135,7 +1142,7 @@ a:-webkit-any-link {
}

#message-input {
height: 82px;
height: 90px;
margin-left: 20px;
max-height: 200px;
}
Expand Down
4 changes: 3 additions & 1 deletion g4f/gui/client/static/js/chat.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ const register_message_buttons = async () => {
el.dataset.click = "true";
el.addEventListener("click", async () => {
if ("active" in el.classList || window.doSpeech) {
el.classList.add("blink")
stopped = true;
return;
}
if (stopped) {
el.classList.remove("blink")
stopped = false;
return;
}
Expand All @@ -125,7 +127,7 @@ const register_message_buttons = async () => {
sound.controls = 'controls';
sound.src = url;
sound.type = 'audio/wav';
if (ended) {
if (ended && !stopped) {
sound.autoplay = true;
}
sound.onended = function() {
Expand Down

0 comments on commit 0bb08e1

Please sign in to comment.