cap attacks panel height and make it scrollable when overflow

This commit is contained in:
evanpelle
2026-03-09 09:44:25 -07:00
parent 5396931909
commit ebd39e8ced
+1 -1
View File
@@ -441,7 +441,7 @@ export class AttacksDisplay extends LitElement implements Layer {
return html` return html`
<div <div
class="w-full mb-1 mt-1 sm:mt-0 pointer-events-auto grid grid-cols-2 gap-1 text-white text-sm lg:text-base" class="w-full mb-1 mt-1 sm:mt-0 pointer-events-auto grid grid-cols-2 gap-1 text-white text-sm lg:text-base max-h-[7rem] overflow-y-auto"
> >
${this.renderOutgoingAttacks()} ${this.renderOutgoingLandAttacks()} ${this.renderOutgoingAttacks()} ${this.renderOutgoingLandAttacks()}
${this.renderBoats()} ${this.renderIncomingAttacks()} ${this.renderBoats()} ${this.renderIncomingAttacks()}