Skip to content

Commit

Permalink
webui: Hide close button in browser
Browse files Browse the repository at this point in the history
When the user clicks the close button, it currently displays:

----
🌐 127.0.0.1

This page is asking you to confirm that you want to
leave — information you’ve entered may not be saved.

                      [ Stay on Page ] [ Leave Page ]
----

That is obviously not a great user experience.

Anaconda already has a way to abort the install and reboot, so
the close button isn't really adding much.

This commit hides the close button.
  • Loading branch information
halfline committed Sep 5, 2023
1 parent cc33fe5 commit 1c7c5da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/webui/firefox-theme/default/chrome/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
#titlebar:has(#tabbrowser-tabs tab:only-of-type) + #nav-bar:not(:focus-within) {
visibility: collapse;
}

.titlebar-close {
display: none;
}
4 changes: 4 additions & 0 deletions ui/webui/firefox-theme/live/chrome/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
#titlebar:has(#tabbrowser-tabs tab:only-of-type) + #nav-bar:not(:focus-within) {
visibility: collapse;
}

.titlebar-close {
display: none;
}

0 comments on commit 1c7c5da

Please sign in to comment.