Manjsi oblikovalski popravki, skrolanje pri editiranju popravljeno

pull/41/head
Jurij Podgoršek 2024-03-05 14:34:46 +01:00
parent f9df3883ab
commit 9b647a67b2
2 changed files with 18 additions and 2 deletions

View File

@ -1,8 +1,12 @@
<script setup="setup">
const route = useRoute()
const pot = computed(() => route.path)
const naManifestu = computed(() => route.path.indexOf('/manifest') === 0)
const { baseUrl } = useRuntimeConfig().public
</script>
<template>
@ -19,7 +23,7 @@ const naManifestu = computed(() => route.path.indexOf('/manifest') === 0)
</NuxtLink>
</li>
<li>
<NuxtLink to="https://yugofuturism.kompot.si/user" target="_blank">
<NuxtLink :to="baseUrl + '/user'" class="posivljen" target="_blank">
admin
</NuxtLink>
</li>
@ -108,6 +112,10 @@ ul {
width: 100%;
}
.posivljen {
opacity: 0.5;
}
@media screen and (max-width: 768px) {
.meni {
display: flex;

View File

@ -43,7 +43,13 @@ onMounted(() => {
setTimeout(() => obrazec.value.scrollIntoView({ behavior: 'smooth' }), 50)
} else {
// Sicer samo poskrolaj na pojem
setTimeout(() => container.value.parentNode.scrollIntoView({ behavior: 'smooth' }), 50)
setTimeout(() => {
const sekcija = container.value.parentNode
console.log('skrolam?', sekcija)
if (sekcija) {
sekcija.scrollIntoView({ behavior: 'smooth' })
}
}, 50)
}
})
@ -103,6 +109,8 @@ onMounted(() => {
form.pojem {
margin-left: 0;
min-height: 70vh;
width: 100%;
margin-left: 0;
}
}
</style>