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

UI improvements for small screens #837

Closed
wants to merge 4 commits into from
Closed

Conversation

imhalid
Copy link

@imhalid imhalid commented Feb 8, 2025

In this pull request, I made UI improvements for small screens and added two buttons (similar to the VSCode icons) for the sidebar and footer. This way, users can have a more comfortable experience.

Kapture.2025-02-08.at.22.41.46.mp4

@f
Copy link
Owner

f commented Feb 12, 2025

Can you resolve conflicts and update the PR?

@imhalid
Copy link
Author

imhalid commented Feb 13, 2025

Can you resolve conflicts and update the PR?

I resolved the conflicts, but I didn't understand what caused them. However, when I sent the PR, there was no issue. :(

@GIgako19929
Copy link

gh pr checkout 837

@imhalid
Copy link
Author

imhalid commented Feb 26, 2025

I'm closing this pull request because several pull requests have been approved since then, and I don't want to resolve a conflict spanning over +6000 lines.

@imhalid imhalid closed this Feb 26, 2025
@GIgako19929
Copy link

This pull request includes several changes to script.js to enhance the user interface and improve functionality. The most important changes include the addition of sidebar and footer toggle functionality, updating the header height dynamically, and modifying the star count text.

Enhancements to user interface:

  • Added elements to handle sidebar and footer toggle functionality, including event listeners for the toggle buttons. ([[1]](https://github.com/f/awesome-chatgpt-prompts/pull/837/files#diff-ed3ee7e0beea2498ff3b8ca85973d122fc6fa3d585d62b5807ec034d0cf076b3R16-R36), [[2]](https://github.com/f/awesome-chatgpt-prompts/pull/837/files#diff-ed3ee7e0beea2498ff3b8ca85973d122fc6fa3d585d62b5807ec034d0cf076b3R133-R152))
  • Updated the header height dynamically based on the site's header size, with event listeners for load and resize events. ([script.jsR16-R36](https://github.com/f/awesome-chatgpt-prompts/pull/837/files#diff-ed3ee7e0beea2498ff3b8ca85973d122fc6fa3d585d62b5807ec034d0cf076b3R16-R36))

Functionality improvements:

  • Changed the default star count text from "50k+" to "120k+" in case of an error fetching the actual star count. ([script.jsL152-R193](https://github.com/f/awesome-chatgpt-prompts/pull/837/files#diff-ed3ee7e0beea2498ff3b8ca85973d122fc6fa3d585d62b5807ec034d0cf076b3L152-R193))
  • Modified the search results display function to automatically close the sidebar on smaller screens. ([script.jsR385-R389](https://github.com/f/awesome-chatgpt-prompts/pull/837/files#diff-ed3ee7e0beea2498ff3b8ca85973d122fc6fa3d585d62b5807ec034d0cf076b3R385-R389))
  • Updated the main content scroll behavior to scroll the entire HTML document instead of just the main content container. ([script.jsL370-R416](https://github.com/f/awesome-chatgpt-prompts/pull/837/files#diff-ed3ee7e0beea2498ff3b8ca85973d122fc6fa3d585d62b5807ec034d0cf076b3L370-R416))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants