fix(sms): keep the charge dialog fully on screen
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -126,6 +126,7 @@ defineExpose({ refresh: load });
|
|||||||
<button type="button" class="charge" @click="chargeOpen = true">شارژ</button>
|
<button type="button" class="charge" @click="chargeOpen = true">شارژ</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<Teleport to="body">
|
||||||
<div v-if="chargeOpen" class="layer">
|
<div v-if="chargeOpen" class="layer">
|
||||||
<div class="backdrop" @click="closeCharge" />
|
<div class="backdrop" @click="closeCharge" />
|
||||||
<div class="modal charge-modal" role="dialog" aria-label="شارژ پیامک">
|
<div class="modal charge-modal" role="dialog" aria-label="شارژ پیامک">
|
||||||
@@ -170,7 +171,9 @@ defineExpose({ refresh: load });
|
|||||||
<p v-else class="muted">اطلاعات واریز در دسترس نیست.</p>
|
<p v-else class="muted">اطلاعات واریز در دسترس نیست.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Teleport>
|
||||||
|
|
||||||
|
<Teleport to="body">
|
||||||
<div v-if="warnOpen" class="layer">
|
<div v-if="warnOpen" class="layer">
|
||||||
<div class="backdrop" @click="warnOpen = false" />
|
<div class="backdrop" @click="warnOpen = false" />
|
||||||
<div class="modal warn" role="dialog" aria-label="هشدار موجودی منفی">
|
<div class="modal warn" role="dialog" aria-label="هشدار موجودی منفی">
|
||||||
@@ -186,6 +189,7 @@ defineExpose({ refresh: load });
|
|||||||
<button type="button" class="ok" @click="warnOpen = false">متوجه شدم</button>
|
<button type="button" class="ok" @click="warnOpen = false">متوجه شدم</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Teleport>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -275,9 +279,12 @@ defineExpose({ refresh: load });
|
|||||||
.layer {
|
.layer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: 80;
|
z-index: 120;
|
||||||
display: grid;
|
display: flex;
|
||||||
place-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdrop {
|
.backdrop {
|
||||||
@@ -289,7 +296,8 @@ defineExpose({ refresh: load });
|
|||||||
.modal {
|
.modal {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: min(420px, calc(100vw - 2rem));
|
width: min(420px, calc(100vw - 2rem));
|
||||||
max-height: min(90vh, 640px);
|
max-height: calc(100vh - 2rem);
|
||||||
|
margin: auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
|||||||
Reference in New Issue
Block a user