1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-25 00:02:28 +02:00

Fix autosize in kixote when switch tabs

This commit is contained in:
trendschau
2025-03-17 00:05:57 +01:00
parent 007cd571f5
commit 0c6b93933e
3 changed files with 17 additions and 3 deletions

2
.gitignore vendored
View File

@@ -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

View File

@@ -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()

View File

@@ -1,4 +1,4 @@
version: '2.14.6'
version: '2.15.0'
title: 'Typemill'
author: 'Unknown'
copyright: false