Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve styling mobile #1813

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line appears to be a duplicate with incorrect hyperlink pointing to /docs/async_client.md instead of /docs/client.md. It should be removed since the correct link is provided on the next line.

- 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
Loading