1
0

Фронт правки

1. Улучшено отображение на iphone и android в PWA
This commit is contained in:
2026-01-17 09:25:10 +07:00
parent c46fd3952e
commit aca5eb84fd
7 changed files with 40 additions and 22 deletions

View File

@@ -39,7 +39,7 @@
</template>
<script setup>
import { ref, computed, watch, onMounted, onUpdated } from 'vue'
import { ref, computed, watch, onMounted, onUpdated, onUnmounted } from 'vue'
const props = defineProps({
modelValue: {
@@ -106,6 +106,13 @@ watch(open, (val) => {
}
})
// Cleanup при unmount — гарантируем сброс overflow
onUnmounted(() => {
if (open.value) {
document.body.style.overflow = ''
}
})
onMounted(refreshIcons)
onUpdated(refreshIcons)
</script>
@@ -223,6 +230,8 @@ onUpdated(refreshIcons)
display: flex;
flex-direction: column;
overflow: hidden;
/* Safe area для iPhone notch */
padding-top: env(safe-area-inset-top, 0px);
}
.panel-header {