From 3206730da5094e4c43d1ad78fee1c4c93a291411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Wed, 24 Jan 2024 17:37:41 +0100 Subject: [PATCH] Popravki stilov in obnasanja --- nuxt/components/Pojem.vue | 11 +++++++---- nuxt/components/PojemForm.vue | 30 ++++++++++++++++++++++-------- nuxt/pages/manifest/dodaj.vue | 21 ++++++++++++++++++--- nuxt/pages/manifest/index.vue | 2 +- nuxt/pages/manifest/pojem.vue | 8 ++++++++ 5 files changed, 56 insertions(+), 16 deletions(-) diff --git a/nuxt/components/Pojem.vue b/nuxt/components/Pojem.vue index b469069..063f473 100644 --- a/nuxt/components/Pojem.vue +++ b/nuxt/components/Pojem.vue @@ -19,6 +19,7 @@ const revisionId = computed(() => pojem.value.id) const urejanje = ref(false) const container = ref(null) +const obrazec = ref(null) const urediPojem = async () => { // Ustvari pad s tekstom pojma, ce se ne obstaja @@ -37,7 +38,7 @@ onMounted(() => { setTimeout(() => obrazec.value.scrollIntoView({ behavior: 'smooth' }), 50) } else { // Sicer samo poskrolaj na pojem - setTimeout(() => container.value.scrollIntoView({ behavior: 'smooth' }), 50) + setTimeout(() => container.value.parentNode.scrollIntoView({ behavior: 'smooth' }), 50) } }) @@ -47,7 +48,7 @@ onMounted(() => {
Uredi
-

{{ pojem }}

+

{{ naslov }}

{ :revisionId="revisionId" :pojem="pojem" :urejanje="urejanje" - :onZapri="() => { urejanje = false; store.naloziPojme()}" - /> + :onZapri="() => { urejanje = false; store.naloziPojme() }" />