From 0c6b93933e8337357a3730db9cbd4e14aafe0023 Mon Sep 17 00:00:00 2001 From: trendschau Date: Mon, 17 Mar 2025 00:05:57 +0100 Subject: [PATCH] Fix autosize in kixote when switch tabs --- .gitignore | 2 ++ system/typemill/author/js/vue-kixote.js | 16 ++++++++++++++-- system/typemill/settings/defaults.yaml | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7fad67c..b9641bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ cache/sitemap.xml +cache/timer.yaml content/index.yaml content/00-welcome/index.yaml content/00-welcome/00-setup-your-website.yaml @@ -15,6 +16,7 @@ system/vendor cypress data/navigation data/css +data/security node_modules plugins/search settings/settings.yaml diff --git a/system/typemill/author/js/vue-kixote.js b/system/typemill/author/js/vue-kixote.js index 4bc1b02..7789352 100644 --- a/system/typemill/author/js/vue-kixote.js +++ b/system/typemill/author/js/vue-kixote.js @@ -639,6 +639,17 @@ kixote.component('tab-generate', { this.initializeContent() } }, + watch: { + currentTab(newTab, oldTab) { + if (newTab === 'article') + { + console.info('article'); + this.$nextTick(() => { + this.initAutosize(); // Trigger the resizing when switching back to the article tab + }); + } + } + }, computed: { promptlistactive() { @@ -704,12 +715,13 @@ kixote.component('tab-generate', { }) }, setCurrentTab(tabValue) - { + { this.currentTab = tabValue; if(tabValue == 'article') { - this.resizeAiEditor(); + this.resizeAiEditor(); + this.resizePromptEditor(); } }, initializeContent() diff --git a/system/typemill/settings/defaults.yaml b/system/typemill/settings/defaults.yaml index 6ff0af9..4619228 100644 --- a/system/typemill/settings/defaults.yaml +++ b/system/typemill/settings/defaults.yaml @@ -1,4 +1,4 @@ -version: '2.14.6' +version: '2.15.0' title: 'Typemill' author: 'Unknown' copyright: false