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

[WIP] preferences: Add X button to preference pages. #1160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manavmehta
Copy link
Collaborator

@manavmehta manavmehta commented Nov 6, 2021

What's this PR do?
Addition of X button adds a conventional and convenient method to escape out from settings menu instead of workarounds.

The X button is coherent with those used elsewhere in Zulip Web.
Precise, the same css code is used which styles the X button in all other web setting menus.

Fixes: #1077

Flow of the code piece:
Upon clicking on the X button, base-section.ts/exitSettings() is called.
It sends renderer a message to exit settings -> received in main.ts.
Which, finds the last active server tab. If that exists, we switch focus to the same.

Screenshots?

You have tested this PR on:

  • Windows
  • Linux/Ubuntu 20.04
  • macOS

@alya
Copy link
Collaborator

alya commented Nov 8, 2021

Would you mind posting screenshots? Thanks!

@manavmehta
Copy link
Collaborator Author

Sure @alya
GeneralSection Full Screen

Orgs Small Window

Let me know what you think.

…nces pages.

Addition of X button adds a conventional and convenient method to escape out from settings menu instead of workarounds.

Fixes: zulip#1077
@zulipbot
Copy link
Member

zulipbot commented Apr 9, 2022

Heads up @manavmehta, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

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

Successfully merging this pull request may close these issues.

Stuck in preferences
3 participants