make options menu scale better

This commit is contained in:
Evan
2025-01-30 16:46:17 -08:00
parent ca313fd383
commit f284603827
3 changed files with 14 additions and 9 deletions
+3 -3
View File
@@ -71,7 +71,7 @@ export class OptionsMenu extends LitElement implements Layer {
<div class="flex items-center gap-1 lg:gap-2">
<button
class="${!this.showPauseButton ? "hidden" : ""}
w-6 h-6 lg:w-10 lg:h-10 flex items-center justify-center
w-8 h-8 lg:w-10 lg:h-10 flex items-center justify-center
bg-opacity-70 bg-gray-700 text-opacity-90 text-white
border-none rounded cursor-pointer
hover:bg-opacity-60 hover:bg-gray-600
@@ -83,14 +83,14 @@ export class OptionsMenu extends LitElement implements Layer {
${this.isPaused ? "▶" : "⏸"}
</button>
<div
class="w-14 h-6 lg:w-20 lg:h-10 flex items-center justify-center
class="w-14 h-8 lg:w-20 lg:h-10 flex items-center justify-center
bg-opacity-50 bg-gray-700 text-opacity-90 text-white
rounded text-sm lg:text-xl"
>
${this.timer}
</div>
<button
class="w-6 h-6 lg:w-10 lg:h-10 flex items-center justify-center
class="w-8 h-8 lg:w-10 lg:h-10 flex items-center justify-center
bg-opacity-70 bg-gray-700 text-opacity-90 text-white
border-none rounded cursor-pointer
hover:bg-opacity-60 hover:bg-gray-600
@@ -181,7 +181,11 @@ export class PlayerInfoOverlay extends LitElement implements Layer {
return html`
<div class="p-2">
<div class="font-bold mb-1 ${isAlly ? "text-green-500" : "text-white"}">
<div
class="text-bold text-sm lg:text-lg font-bold mb-1 ${isAlly
? "text-green-500"
: "text-white"}"
>
${player.name()}
</div>
<div class="text-sm opacity-80">
+6 -5
View File
@@ -179,18 +179,19 @@
<win-modal></win-modal>
<top-bar></top-bar>
<div class="fixed flex-col top-0 right-0 z-50 max-w-1/3 sm:max-w-1/5">
<div class="fixed right-0 top-0 z-50 flex flex-col w-32 sm:w-32 lg:w-48">
<options-menu></options-menu>
<player-info-overlay></player-info-overlay>
<player-info-overlay></player-info-overlay>
</div>
<div class="fixed bottom-0 flex w-full flex-col-reverse sm:flex-row z-50">
<div class="w-full sm:w-1/3">
<control-panel></control-panel>
</div>
<div class="w-full sm:w-2/3 sm:fixed sm:right-0 sm:bottom-0 sm:flex justify-end">
<events-display></events-displayflex >
<div
class="w-full sm:w-2/3 sm:fixed sm:right-0 sm:bottom-0 sm:flex justify-end"
>
<events-display></events-display>
</div>
</div>