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

View File

@ -43,7 +43,13 @@ onMounted(() => {
setTimeout(() => obrazec.value.scrollIntoView({ behavior: 'smooth' }), 50) setTimeout(() => obrazec.value.scrollIntoView({ behavior: 'smooth' }), 50)
} else { } else {
// Sicer samo poskrolaj na pojem // 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 { form.pojem {
margin-left: 0; margin-left: 0;
min-height: 70vh; min-height: 70vh;
width: 100%;
margin-left: 0;
} }
} }
</style> </style>