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:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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
|
||||
|
@@ -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()
|
||||
|
@@ -1,4 +1,4 @@
|
||||
version: '2.14.6'
|
||||
version: '2.15.0'
|
||||
title: 'Typemill'
|
||||
author: 'Unknown'
|
||||
copyright: false
|
||||
|
Reference in New Issue
Block a user