mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-07 11:35:58 +00:00
Improve moble UI again ✨ (#3226)
## Description: - Fix HeadsUpMessage appearing above Settings modal - Fix HeadsUpMessage appearing above Leaderboard - Remove PlayerInfoOverlay show/hide animation (we need quick access to the data!) - Close PlayerInfoOverlay on tap outside the map (gray area) - Fix error when tapping gray area outside the map - Close PlayerInfoOverlay on click/tap on itself ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin
This commit is contained in:
@@ -145,7 +145,7 @@ export class HeadsUpMessage extends LitElement implements Layer {
|
||||
${this.toastMessage
|
||||
? html`
|
||||
<div
|
||||
class="fixed top-6 left-1/2 -translate-x-1/2 z-[11001] px-6 py-4 rounded-xl transition-all duration-300 animate-fade-in-out"
|
||||
class="fixed top-6 left-1/2 -translate-x-1/2 z-[800] px-6 py-4 rounded-xl transition-all duration-300 animate-fade-in-out"
|
||||
style="max-width: 90vw; min-width: 200px; text-align: center;
|
||||
background: ${this.toastColor === "red"
|
||||
? "rgba(239,68,68,0.1)"
|
||||
@@ -169,7 +169,7 @@ export class HeadsUpMessage extends LitElement implements Layer {
|
||||
${this.isVisible
|
||||
? html`
|
||||
<div
|
||||
class="fixed top-[15%] left-1/2 -translate-x-1/2 z-[11000]
|
||||
class="fixed top-[15%] left-1/2 -translate-x-1/2 z-[799]
|
||||
inline-flex items-center justify-center min-h-8 lg:min-h-10
|
||||
w-fit max-w-[90vw]
|
||||
bg-gray-800/70 rounded-md lg:rounded-lg
|
||||
|
||||
Reference in New Issue
Block a user