diff --git a/src/client/FlagInputModal.ts b/src/client/FlagInputModal.ts index a36157509..65f56754d 100644 --- a/src/client/FlagInputModal.ts +++ b/src/client/FlagInputModal.ts @@ -95,14 +95,36 @@ export class FlagInputModal extends LitElement { } static styles = css` - @media (max-width: 768px) { - .flag-modal { - width: 80vw; - } + :host { + display: flex; + flex-direction: column; + height: 100%; + } - .dropdown-item { - width: calc(100% / 3 - 15px); - } + .flag-modal { + display: flex; + flex-direction: column; + height: 100%; + overflow: hidden; + } + + .grid { + flex-grow: 1; + overflow-y: auto; + } + + .flex-col { + display: flex; + flex-direction: column; + height: 100%; + } + + .overflow-hidden { + overflow: hidden; + } + + .overflow-y-auto { + overflow-y: auto; } `; @@ -235,6 +257,7 @@ export class FlagInputModal extends LitElement { widthRatio="0.8" heightRatio="0.75" disableScroll="true" + special="true" >
@@ -364,7 +387,7 @@ ${colorClass}" : null}
${Object.entries(FlagMap) .filter(([name]) => name !== "frame" && name !== "full") @@ -507,7 +530,7 @@ mask: url(${src}) center / contain no-repeat; ${translateText("flag_input.apply")} -
+
${this.errorMessage diff --git a/src/client/components/baseComponents/Modal.ts b/src/client/components/baseComponents/Modal.ts index e75683e92..b29d13a41 100644 --- a/src/client/components/baseComponents/Modal.ts +++ b/src/client/components/baseComponents/Modal.ts @@ -10,6 +10,7 @@ export class OModal extends LitElement { @property({ type: Number }) widthRatio?: number; @property({ type: Number }) heightRatio?: number; @property({ type: Boolean }) disableScroll = false; + @property({ type: Boolean }) special = false; static styles = css` .c-modal { @@ -34,6 +35,16 @@ export class OModal extends LitElement { max-width: 860px; } + .c-modal__wrapper__special { + background: #23232382; + border-radius: 8px; + min-width: 340px; + max-width: 860px; + display: flex; + flex-direction: column; + height: 100%; + } + .c-modal__header { position: relative; border-top-left-radius: 4px; @@ -60,6 +71,16 @@ export class OModal extends LitElement { overflow-y: scroll; backdrop-filter: blur(8px); } + + .c-modal__content__special { + position: relative; + color: #fff; + padding: 1.4rem; + flex-grow: 1; + max-height: 100%; + overflow-y: auto; + backdrop-filter: blur(8px); + } `; public open() { this.isModalOpen = true; @@ -78,7 +99,7 @@ export class OModal extends LitElement { ? html`