mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 13:50:20 +00:00
have playerinfo stay under optionsmenu
This commit is contained in:
@@ -64,9 +64,7 @@ export class OptionsMenu extends LitElement implements Layer {
|
||||
return html``;
|
||||
}
|
||||
return html`
|
||||
<div
|
||||
class="fixed top-0 lg:top-4 right-0 lg:right-4 z-50 pointer-events-auto"
|
||||
>
|
||||
<div class="top-0 lg:top-4 right-0 lg:right-4 z-50 pointer-events-auto">
|
||||
<div
|
||||
class="bg-opacity-60 bg-gray-900 p-1 lg:p-2 rounded-lg backdrop-blur-md"
|
||||
>
|
||||
|
||||
@@ -228,9 +228,9 @@ export class PlayerInfoOverlay extends LitElement implements Layer {
|
||||
: "opacity-0 invisible pointer-events-none";
|
||||
|
||||
return html`
|
||||
<div class="fixed top-24 right-3 z-50 flex flex-col md:top-20 md:right-2">
|
||||
<div class="flex w-full z-50 flex flex-col">
|
||||
<div
|
||||
class="bg-opacity-70 bg-gray-900 rounded-lg shadow-lg backdrop-blur-sm transition-all duration-300 min-w-[120px] md:min-w-[100px] text-white text-lg md:text-base ${containerClasses}"
|
||||
class="bg-opacity-70 bg-gray-900 rounded-lg shadow-lg backdrop-blur-sm transition-all duration-300 text-white text-lg md:text-base ${containerClasses}"
|
||||
>
|
||||
${this.player != null ? this.renderPlayerInfo(this.player) : ""}
|
||||
${this.unit != null ? this.renderUnitInfo(this.unit) : ""}
|
||||
|
||||
@@ -36,7 +36,7 @@ export class TopBar extends LitElement implements Layer {
|
||||
const goldPerSecond = this.game.config().goldAdditionRate(myPlayer) * 10;
|
||||
return html`
|
||||
<div
|
||||
class="fixed top-0 z-50 bg-black/90 text-white text-sm p-1 rounded grid grid-cols-1 sm:grid-cols-2 w-2/3 sm:w-2/3 md:w-1/2 lg:hidden"
|
||||
class="fixed top-0 z-50 bg-black/90 text-white text-sm p-1 rounded grid grid-cols-1 sm:grid-cols-2 w-1/2 sm:w-2/3 md:w-1/2 lg:hidden"
|
||||
>
|
||||
<!-- Pop section (takes 2 columns on desktop) -->
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user